CHMOD

Syntax: chmod <numeric permission mask> <server file or directory>

FTP Command Index     SFTP Command Index

The CHMOD command changes the permissions associated with a file or directory.

<numeric permission mask>

Specifies a three digit numeral that is a valid value for the UNIX chmod command. Valid values have digits from 0 to 7.

Tip: To determine what mask to use to set permissions, right click on a server file and select properties. The properties dialog box displays the three digit mask and the permissions associated with it. If you change the permissions, the mask value is updated automatically.

<server file or directory>

Specifies a file or directory on the FTP server. Follow the server's syntax for specifying file and directory names.

Example

This command sets attributes to -rw-r--r-- for the specified file.

chmod 644 myfile.htm