allowed-site-commands NcFTPd file configuration
Don't forget to restart NcFTPd after modifying the file.

NcFTPd supports a commonly adopted method for additional commands that are not required or specified by the official protocol.  An FTP client can invoke these commands by issuing a SITE command.  For example, the FTP client could send SITE CHMOD 644 index.html to run the chmod command extension.

The default action is to let a user perform any SITE command that their login privilege permits.  These commands are:

The chmod and umask commands do what they do for a regular shell.  The quota command allows a user to view his quota information; The retrbufsize and storbufsize let a user tune the desired TCP window size for transfers; The symlink command is equivalent to /bin/ln -s; The utime command is similar to the touch command, where a user can set the modification time and access time.

This option is here in case you want to control which commands the remote users can run.  The right hand side is a comma-delimited list of commands you want, or the special keywords all or none.  Since users can't change files unless they would be able to at a regular login shell, it is recommended to leave the default set to all.

Note: As of version 2.7.2, configuring SITE UTIME also configures the equivalent non-standard datestamping functionality in MDTM (for example, MDTM 200207042233 /the/file/to/change/here.txt).


Previous: allow-u0 NcFTPd Home Next: ascii-mode