ftpaccess.4 (2010 09)

f
ftpaccess(4) ftpaccess(4)
anonymous FTP directory tree.
readme path [ when [ class ]]
Define a file with path such that
ftpd will notify user at login time or upon using the change work-
ing directory command that the file exists and was modified on such-and-such date. The when
parameter may be
LOGIN or CWD=<dir>.Ifwhen
CWD=<dir>, dir specifies the new default
directory which will trigger the notification. The message will only be displayed once, to avoid both-
ering users. Remember that when
README messages are triggered by an anonymous FTP user, the
path must be relative to the base of the anonymous FTP directory tree.
The optional class specification allows the message to be displayed only to members of a particular
class. More than one class may be specified.
Logging Capabilities
log commands typelist
Enables logging of individual commands by users. typelist is a comma-separated list of any of the
keywords
anonymous, guest and real. If the
real keyword is included, logging will be done
for users using FTP to access real accounts, and if the
anonymous keyword is included logging will
done for users using anonymous FTP. The
guest keyword matches guest access accounts (see
guestgroup in the Access Capabilities subsection above for more information). The individual
commands are logged in the /var/adm/syslog/syslog.log
file.
log transfers typelist directions
Enables logging of file transfers for either real or anonymous FTP users. Logging of transfers TO
the server (incoming) can be enabled separately from transfers FROM the server (outbound). typel-
ist is a comma-separated list of any of the keywords
anonymous, guest and real. If the real
keyword is included, logging will be done for users using FTP to access real accounts. If the
anonymous keyword is included, logging will be done for users using anonymous FTP. The
guest
keyword matches guest access accounts (see guestgroup in the Access Capabilities subsection
above for more information). directions is a comma-separated list of any of the two keywords
inbound and outbound, and will respectively cause transfers to be logged for files sent to the
server and sent from the server. All the logging is done into the file
/var/adm/syslog/xferlog
.
log security typelist
Enables logging of violations of security rules (noretrieve, notar, ...) for real, guest and/or
anonymous users. typelist is a comma-separated list of any of the keywords
anonymous, guest,
and
real. If the real keyword is included, logging will be done for users using FTP to access real
accounts. If the anonymous keyword is included, logging will done for users using anonymous
FTP. The guest keyword matches guest access accounts (see guestgroup for more information).
log syslog
log syslog+xferlog
Redirects the logging messages for incoming and outgoing transfers to either syslog,orxferlog,
or both. By default (if log is not specified), the transfer log messages are put into xferlog. log
syslog will put the log messages into only syslog. log syslog+xferlog will put the log
messages into both syslog and xferlog.
Upload/Download Ratios
ul-dl-rate rate [ class ... ]
Specify an Upload/Download ratio (1:rate ). For each byte that an ftp user uploads, rate bytes can be
downloaded. By default, there is no ratio.
dl-free filename [ class ... ]
The file filename can be downloaded freely ignoring the ratio. See
ul-dl-rate above.
dl-free-dir dirname [ class ... ]
All files in the directory dirname and its subdirectories can be downloaded freely ignoring the ratio.
See
ul-dl-rate above.
Note that both
dl-free and dl-free-dir are relative to the systems root environment, not the
chroot environment.
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: September 2010