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

Configuring xinetd for the wu-ftp Server

Configuring xinetd for the wu-ftp Server

When you use RPM to install wu-ftp, the RPM package might contain a xinetd configuration file, /etc/xinetd.d/wu-ftpd, as shown in Listing 20.2. You need to edit the file because its default settings disable incoming FTP requests.

NOTE

Do not be confused by the first line of the wu-ftpd file's text. Even though the line reads default: on, FTP service is off unless you specifically configure its use. The line is a comment because it begins with a pound sign (#) and is ignored by xinetd. Whether FTP service is on is determined by the text line disable = yes.

LISTING 20.2 xinetd Configuration File for wu-ftpd

# default: on
# description: The wu-ftpd FTP server serves FTP connections. It uses
# normal, unencrypted usernames and passwords for authentication.
service ftp {
 disable        = yes
 socket_type    = stream
 wait           = no
 user           = root
 server         = /usr/sbin/in.ftpd
 server_args    = -l -a
 log_on_success += DURATION
 nice           = 10
}

Using an editor, change the disable = yes line to disable = no. Save the file and exit the editor. You then must restart xinetd because configuration files are parsed only at startup. To restart xinetd as root, issue the command /etc/rc.d/init.d/xinetd restart. This makes a call to the same shell script that is called at any runlevel to start or stop the xinetd daemon (and thus start up or shut down the system). xinetd should report its status as:

# /etc/rc.d/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]

After it is restarted, the FTP server is accessible to all incoming requests.

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


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