NAME | SYNOPSIS | DESCRIPTION | FILES | ATTRIBUTES | SEE ALSO | RESTRICTIONS FOR ChorusOS
ftpd is a target utility.
The ftpd daemon is the Internet File Transfer Protocol server process. The server uses the TCP protocol and listens at the port specified in the ftp service specification (see services(5)).
Available options are:
Debugging information is written to the syslog using LOG_FTP.
Each successful and failed ftp(1) session is logged using syslog with a facility of LOG_FTP. If this option is specified twice, the retrieve (get), store (put), append, delete, make directory, remove directory and rename operations and their filename arguments are also logged.
A client may also request a different timeout period; the maximum period allowed may be set to maxtimeout seconds using the -T option. The default limit is 2 hours.
The inactivity timeout period is set to timeout seconds (the default is 15 minutes).
The file /etc/nologin can be used to disable ftp access. If the file exists, ftpd displays it and exits. If the file /etc/ftpwelcome exists, ftpd prints it before issuing the ready message.
The ftp server currently supports the following ftp requests, the case of the requests is ignored:
abort previous command
specify account (ignored)
allocate storage (vacuously)
append to a file
change to parent of current working directory
change working directory
delete a file
give help information
give list files in a directory (ls -lgA)
make a directory
show last modification time of file
specify data transfer mode
give name list of files in directory
do nothing
specify password
prepare for server-to-server transfer
specify data connection port
print the current working directory
terminate session
restart incomplete transfer
retrieve a file
remove a directory
specify rename-from file name
specify rename-to file name
non-standard commands (see next section)
return size of file
return status of server
store a file
store a file with a unique name
specify data transfer structure
show operating system type of server system
specify data transfer type
specify user name
change to parent of current working directory (deprecated)
change working directory (deprecated)
make a directory (deprecated)
print the current working directory (deprecated)
remove a directory (deprecated)
The remaining ftp requests specified in Internet RFC 959 are recognized, but not implemented.
The ftp server will abort an active file transfer only when the ABOR command is preceded by a Telnet "Interrupt Process" (IP) signal and a Telnet "Synch" signal in the command Telnet stream, as described in Internet RFC 959. If a STAT command is received during a data transfer, preceded by a Telnet IP and Synch, the transfer status will be returned.
The Ftpd daemon interprets file names according to the globbing conventions used by csh. This allows users to use the metacharacters & * ? [ ] { } ~ .
The Ftpd daemon authenticates users according to two rules:
The login name must be in the security data base, /etc/security , and not have a null password (see security(4CC)). In this case a password must be provided by the client before any file operations may be performed.
In this case the /etc/security file is not present, no password check is performed and the user has the default credential values (see C_INIT(1M)).
In secure mode, if the user name is anonymous or ftp, an anonymous ftp account must be present in the security file (user ftp). In this case the user is allowed to log in with no password check, and ftpd takes special measures to restrict the client's access privileges.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The Ftpd daemon must be started once using the following command:
% rsh -n <target> arun /etc/ftpd_s <options> &
Each ftp connection will then spawn a new ftpd_s actor.
The user's home directory is always the / directory.
If the -d or -l options are used, I/Os will go to the window where the ftpd server was started.
NAME | SYNOPSIS | DESCRIPTION | FILES | ATTRIBUTES | SEE ALSO | RESTRICTIONS FOR ChorusOS