Set file and directory permissions recursively for a website

Sometimes you just want a quick way to set your web files and your directories to the ‘standard’ permissions required. Whilst each website requires different levels of access for different users, this is the bare minimum you should be doing.

You can do this using an FTP client like Filezilla but it can take a while for a big site. If you have access to the command prompt then you can navigate yourself to the relevant web folder and type:

find -type d -exec chmod 755 {} \;
find -type f -exec chmod 644 {} \;

These standard permissions prevent your web files/directories being overwritten by all but the ‘Owner’. This is a standard setup for a Joomla site.

Leave a Reply

Your email address will not be published. Required fields are marked *