Книга: Fedora™ Unleashed, 2008 edition

Display Information About Connected Users

Display Information About Connected Users

The ftpwho command provides information about the users currently connected to the FTP server. Here's the command line:

/usr/bin/ftpwho

Table 20.3 shows the format of the output ftpwho displays.

TABLE 20.3 ftpwho Fields

Name Description
Process ID The process ID of the FTP server process.
TTY The terminal ID of the process. This is always a question mark (?) because the FTP daemon is not an interactive login.
Status The status of the FTP process. The values are:
S: Sleeping
Z: Zombie, indicating a crash
R: Running
N: Normal process
Time The elapsed processor time the process has used in minutes and seconds.
Details Tells from what host the process is connecting, the user who connected, and the currently executing command.

Listing 20.4 shows typical output from this command. It lists the process ID for the ftp daemon handling requests, the class to which the particular user belongs, the total time connected, the connected username, and the status of the session.

In addition to the information given about each connected user, ftpwho also displays the total number of users connected out of any maximum that has been set in the ftpaccess file. This information can be used to monitor the use of your FTP server.

You can pass one parameter to ftpwho. (You can find the parameter by using the ftpwho --help command.) The single parameter you can pass to ftpwho is -V. This parameter prints out version and licensing information for wu-ftp, as shown here:

# ftpwho
Service class all:
10447 ? SN 0:00 ftpd: localhost: anonymous/[email protected]: IDLE
1 users (no maximum)

The output of ftpwho, using the -V option, which shows version information, is shown in Listing 20.4.

LISTING 20.4 ftpwho -V Command Output

Copyright © 1999,2000,2001 WU-FTPD Development Group.
All rights reserved.
Portions Copyright © 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994
 The Regents of the University of California.
Portions Copyright © 1993, 1994 Washington University in Saint Louis.
Portions Copyright © 1996, 1998 Berkeley Software Design, Inc.
Portions Copyright © 1989 Massachusetts Institute of Technology.
Portions Copyright © 1998 Sendmail, Inc.
Portions Copyright © 1983, 1995, 1996, 1997 Eric P. Allman.
Portions Copyright © 1997 by Stan Barber.
Portions Copyright © 1997 by Kent Landfield.
Portions Copyright © 1991, 1992, 1993, 1994, 1995, 1996, 1997
Free Software Foundation, Inc.
Use and distribution of this software and its source code are governed by
the terms and conditions of the WU-FTPD Software License ("LICENSE").
If you did not receive a copy of the license, it may be obtained online
at http://www.wu-ftpd.org/license.html.
Version wu-2.6.2-8

Оглавление книги


Генерация: 1.543. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз