HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)
f
ftpd(1M) ftpd(1M)
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. (e.g., SITE UMASK 002)
IDLE Set idle-timer. (e.g., SITE IDLE 60)
CHMOD Change mode of a file. (e.g., SITE CHMOD 755 filename)
HELP Give help information. (e.g., 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. (e.g. , SITE GROUP foo)
GPASS Give special group access password. (e.g. , SITE GPASS bar)
EXEC Execute a program. (e.g. , 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
Section 1M−−246 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: September 2004