Monday, March 25, 2013

Change all files to 644 & drectories to 755 FAST?

Change all files to 644 & drectories to 755 FAST?

You can use the find command to set file perms to 0644:
Code:
find /path/to/apache -type f -print0 | xargs -I {} -0 chmod 0644 {}
For dirs:
Code:
find /path/to/apache -type d -print0 | xargs -I {} -0 chmod 0755 {}

No comments: