Ratios | |
---|---|
%xu | Uploaded bytes |
%xd | Downloaded bytes |
%xR | Upload/download ratio (1: ) |
%xc | Credit bytes |
%xT | Time limit (minutes) |
%xE | Elapsed time since login (minutes) |
%xL | Time left |
%xU | Upload limit |
%xD | Download limit |
To understand how this command works, imagine that you want to display a welcome message to everyone who logs in to the FTP server. An entry of:
message /home/ftp/welcome.msg login
message /welcome.msg login
shows the contents of the welcome.msg
file to all authenticated users who log in to the server. The second entry shows the same message to the anonymous user.
The welcome.msg
file is not created with the installation of the RPM, but you can create it using a text editor. Type the following:
Welcome to the anonymous ftp service on %L!
There are %N out of %M users logged in.
Current system time is %T
Please send email to %E if there are any problems with this service.
Your current working directory is %C
Save this file as /var/ftp/welcome.msg
. Verify that it works by connecting to the FTP server:
220 FTP server ready.
504 AUTH GSSAPI not supported.
504 AUTH KERBEROS_V4 not supported.
KERBEROS_V4 rejected as an authentication type
Name (shuttle:phudson): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-Welcome to the anonymous ftp service on shuttle.home.org!
230-
230-There are 1 out of unlimited users logged in.
230-
230-Current system time is Mon Nov 3 10:57:06 2003
230-
230-Please send email to root@localhost if there are
230-any problems with this service.
230-Your current working directory is /
This line sets the email address for the FTP administrator:
email <name>
This string is printed whenever the %E
magic cookie is specified. This magic cookie is used in the message line or in the shutdown file. You should display this string to users in the login banner message so that they know how to contact you (the administrator) in case of problems with the FTP server.
Do not use your live email address in the display banner; you want others to be able to access user emails as necessary. Instead, use an alias address that routes the messages to the appropriate IT department or other address.
The readme
line tells the server whether a notification should be displayed to the user when a specific file was last modified. Here's the command:
readme <path> {<when {<class>}}
The path parameter is any valid path for the user. The optional when parameter is exactly as seen in the message line. class
can be one or more classes as defined in the class file. The path
is absolute for real users. For the anonymous user, the path
is relative to the anonymous home directory, which is /var/ftp
by default.
Configure System Logging