Tools
SITE FTP command
The SITE command is used by the server to provide services to a client that may not be universally supported by all FTP clients. These commands are commonly server specific implementations provided to allow for additional functionality to FTP clients choosing to implement the command as well. The SITE command is followed by the extended command and any additional parameters.
First published date
Last published date
Overview
This article provides information on Site Parameters (SITE) FTP command.
Product section
Resolution
The SITE command is used by the server to provide services to a client that may not be universally supported by all FTP clients. These commands are commonly server specific implementations provided to allow for additional functionality to FTP clients choosing to implement the command as well. The SITE command is followed by the extended command and any additional parameters. Serv-U supports the following SITE parameters:
CHMOD- TheSITE CHMODcommand specifies new permissions for a specified file or directory. It is issued in the format SITE CHMOD XYZ, where X is the file/folder owner's permissions, Y is the file/folder's assigned group's permissions, andZis the file/folder permissions assigned to all other users. The octal value assigned to each place is determined by using the following values:1- Execute2- Write4- Read
By adding values together, the values for each place are found. For example, 644 grants Read/Write (4+2) permissions to the owner, but only Read (4) permissions to the file group and all other users.
EXEC- TheSITE EXEC(Execute) command executes the provided executable on the server. In circumstances requiring remote execution of batch files or other executables before or after transfers, administrators may create a Directory Access rule that grants Execute access to a.bator.exefile, enabling certain users to run the file while connected. Because of the nature of remote execution, this privilege can easily be abused, so it is advised that users only be granted this permission to individual files on a need-only basis.HELP- TheSITE HELPcommand is used to request information on a specific FTP command as implemented by the server. It is primarily made available for users with command-line clients who are entering commands manually or setting up file transfer scripts.INDEX- TheSITE INDEXcommand requests a recursive listing of all files and directories in the specified path delivered over the command channel, as opposed to the data channel where directory listings are normally performed.MSG- TheSITE MSG(Message) command sends the provided text message to the server administrator. It is used for client to administrator chat, and most fully featured FTP clients will provide a chat window when this type of chat session is started, removing the need to issue this command manually.PSWD- TheSITE PSWD(Password) command changes the logged in user's password to the provided password.SET- TheSITE SETcommand sets the site-specific option specified in the command to the provided value.ZONE- TheSITE ZONEcommand requests the UTF offset for the time zone in which the server is located, allowing some FTP clients to adjust file timestamps to reflect different source/destination time zones.