Padheye.com : Discover Excellence

The Path To Discover Excellence

Tuesday, 23 February 2016

Change all files and folders permissions of a directory to 644/755

 Find is best command to apply permission to directories and files recursively to all .

For Directories

find /desired_location -type d -print0 | xargs -0 chmod 0755

For Files

find /desired_location -type f -print0 | xargs -0 chmod 0644

 

No comments:

Post a Comment