Permissions Details

Use permissions to define who can and cannot view files or folders, who can and cannot run files, and who can and cannot change files or folders on a server.

CuteFTP Mac uses the CHMOD command to change file permissions (UMASK) on remote servers.

CHMOD Permission Mask

The CHMOD’s permission mask is a three-digit number. Note that each digit of the number defines the permission for a different user of the file.

  1. First digit: Defines the permissions for the owner.

  2. Second digit: Defines the permissions for the group.

  3. Third digit: Defines the permissions for everyone else (referred to as public).

Each digit works the same for each group of users: the owner, group, and public. What you set for one digit has no effect on the other two digits. Each digit is made up of the three permissions. Each permission has a numerical value.

These three numbers are added together to get the permissions for a file. If you want a file to only be readable and not writable or executable, set its permission to 4. This works the same for Write and Execute. Files that are only Executable have a permission of 1.

Examples

If you want a file to have Read and Write permissions, add the Read and Write values together (4+2) and you get 6—the permissions setting for Read and Write. If you want the file to have Read, Write, and Execute permissions, use the value 7 (4+2+1). Do this for each of the three permission groups and you get a valid CHMOD mask. If you want your file to have Read, Write, and Execute permissions (4+2+1) for yourself; Read and Execute (4+1) for your group; and Execute (1) only for everyone else, you would set the file permissions to 751.

A file with full permissions granted to everyone would have a CHMOD mask of 777.