Working with web files and permissions in Linux
Thursday, November 22nd, 2007Change all files to 644: chmod 644 -R . (assuming you’re running from the web root)
Change all directories to 755: find . -type d -exec chmod 755 {} + (again assuming you’re running from the web root)
For older versions of linux/shells use: find . -type d -exec chmod 755 {} \;