How to change the permissions of files in a directory recursively

Jim jf_byrnes at comcast.net
Mon Apr 24 18:16:13 UTC 2017


How can I leave the permission of a directory at 755 and change the 
permissions of all of it's files to 766? Everything I have tried and 
what I have found googling ends up setting the dir and file permissions 
the same.

So if I have /var/www/html/foo/  I want foo to remain at 755 and files 
in foo to change to 766.

Thanks,  Jim






More information about the ubuntu-users mailing list