How to recursively change the permissions of files and directories in ubuntu?

By Hardik Savani | April 6, 2016 | | 945 Viewer | Category : Ubuntu


Sometimes, we need to give recursively change the permissions of specific files and directories in ubuntu OS. you can open terminal and run bellow command, so let's try this way :

Example

sudo find foldername -exec chmod a+rwx {} ";"

Give more specific!

sudo find foldername -type d -exec chmod 755 {} ";"

sudo find foldername -type f -exec chmod 644 {} ";"



Do you want to expert php developer or developer team for your projects ?
Contact US