HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

f
ftpd(1M) ftpd(1M)
LPRT Use long address for data connection
LPSV Sets the server to listen on a data port and wait for a connection
MKD Make a directory
MDTM Show last modification time of file
MODE Specify data transfer mode
NLST Give name list of files in directory
NOOP Do nothing
PASS Specify password
PASV Prepare for server-to-server transfer
PORT Specify data connection port
PWD Print the current working directory
QUIT Terminate session
REST Restart incomplete transfer
RETR Retrieve a file
RMD Remove a directory
RNFR Specify rename-from file name
RNTO Specify rename-to file name
SITE Non-standard commands (see next section)
SIZE Return size of file
STAT Return status of server
STOR Store a file
STOU Store a file with a unique name
STRU Specify data transfer structure
SYST Show operating system type of server system
TYPE Specify data transfer type
USER Specify user name
XCUP Change to parent of current working directory
XCWD Change working directory
XMKD Make a directory
XPWD Print the current working directory
XRMD Remove a directory
The following commands are supported when ftpd is operating in a secure environment which is based on
Kerberos V5 (see sis(5)).
Command Description
AUTH Authentication/security mechanism
ADAT Authentication/security data
CCC Clear command channel
ENC Privacy protected command
MIC Integrity protected command
PROT Data channel protection level (level "C" only)
PBSZ Protection buffer size (has no effect)
These commands are described in draft 8 of the FTP security extensions.
The following non-standard or HP-UX specific commands are supported by the SITE command:
Command Description
UMASK
Change umask (for example, SITE UMASK 002).
IDLE Set idle-timer (for example, SITE IDLE 60).
CHMOD Change mode of a file (for example, SITE CHMOD 755 filename).
HELP Give help information (for example, SITE HELP).
NEWER List files newer than a particular date.
MINFO Works like SITE NEWER, but gives extra information.
GROUP Request for special group access (for example, SITE GROUP foo).
GPASS Give special group access password (for example, SITE GPASS bar).
EXEC Execute a program (for example, SITE EXEC program params).
For the SITE EXEC command, in order to execute a program it has to be placed in the
/etc/ftpd/ftp-exec directory. The program to be executed must be either a binary program file or a
valid shell. For example for the following program:
cat /etc/ftpd/ftp-exec/hi.sh
#!/usr/bin/sh
echo hello
HP-UX 11i Version 3: February 2007 3 Hewlett-Packard Company 261