Introduction to file and directory permissions

In this example we will be using FileZilla, a free FTP application available for Windows, macOS and Linux, to connect to the MagicPress server using FTPES.

After having connected to your MagicPress site via FTP, notice the current file and directory permissions. The notation consists of three digits, each indicating the owner, group and public permissions respectively. Each of these digits is the sum of its component bits:

  • The read bit adds 4 to its total
  • The write bit adds 2 to its total
  • The execute bit adds 1 to its total

Therefore, a directory with permissions 500 is readable and executable by its owner.

Changing file and directory permissions

Select the files and directories for which you want to change permissions, right click on them and select File permissions…

filezilla-file-permissions

In the Change file attributes popup, select the desired permissions. In this example, we want our files and directories to be readable, writable and executable by their owner. The permissions may be applied recursively into subdirectories (for files and/or directories) by enabling the respective option. Click OK when you are happy with your options.

filezilla-change-file-attributes

The process may take some time, depending on the number of files and directories selected. Please be patient.

filezilla-changing-permissions

Notice how the permissions of files and directories have changed in the end.

filezilla-changed-file-permissions