Set File and Directory Permissions

You can change file permissions on the server using the server pane or the FTP command line. You can also configure global defaults for new files and directories. For individual sites, you can configure the client to query you for permission values each time you transfer a file or create a new directory.

To change file and directory permissions using the server pane

  1. Connect to a UNIX or Linux host.

  2. In the server pane, select one or more files or directories.

  3. Right-click your selection and choose Properties.

  4. Change the attributes of the selected item(s) using either of the following techniques:

    • In the Permission Mode box, type a three digit number that is a valid value for the UNIX chmod command. Valid values have digits from 0 to 7.

    • Under Owner, Group, and Public, select options to allow each user type permission to read, write, or execute.

  5. Click OK.

To configure global defaults for transferred files or newly created directories

  1. Go to Tools > Options

  2. To set default permissions for uploaded and downloaded files, use the File Attributes tab.

  3. To set default permissions for newly created directories, use the Directory Attributes tab.

  4. Click OK.

To set permissions each time you transfer a file or create a directory

  1. Open the site properties dialog box.

    • To set permissions each time you create a directory on the server, click the Directories tab and select Show attributes before creating directory.

    • To set permissions each time you transfer a file, click the Transfer tab and select either or both of the following options: Show download options before transfer and Show upload options before transfer.

  2. Click OK.

To change file and directory permissions using the FTP command line:

  1. Connect to a UNIX or Linux host.

  2. Press F7 to display the command line if it is not already visible.

  3. Enter a UNIX chmod command using a numeric permission mask.

    For example, the following commands sets attributes to -rw-r--r-- for the specified file.

    chmod 644 myfile.htm

NOTE:Permissions changes you make to directories are not recursive; that is they do not affect the files within the directory.