Tag Archives: chmod

Change files back to 644 and folders back to 755 with chmod

If you want to get rid of the nasty 777 on all files/folders see: find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 find /path/to/base/dir -type f -print0 | xargs -0 chmod 644

Posted in CentOS, Linux | Tagged , , , | Leave a comment