Bizzard's Hackshop
Always under construction!

Change permissions of files and directories separately in GNU/Linux using command line.
For Directories:

find location -type d -print -exec chmod 755 {} \;

For Files:

find location -type f -print -exec chmod 644 {} \;

Conditional permission changing

find location -type d -perm 777 -print -exec chmod 755 {} \;

Changes all directories(including sub-directories) with 777 permission to 755

4 Comments |