xinetd Configuration for wu-ftpd

 < Day Day Up > 

xinetd Configuration for wu-ftpd

xinetd (pronounced "zy-net-d") is the extended Internet services daemon, and handles incoming connections for network services. xinetd is the preferred replacement for a similar tool (used with other Linux distributions and older Red Hat releases) called inetd. However, in addition to several other improvements over inetd, xinetd allows you to apply individual access policies to different network connection requests, such as FTP.

This daemon controls a number of services on your system according to settings in configuration files under the /etc/xinetd.d directory. This section shows you how to edit the appropriate files to enable the use of the wu-ftpd FTP server.

Configuring xinetd for the wu-ftp Server

When installing wu-ftp using RPM, the RPM package may contain an xinetd configuration file, /etc/xinetd.d/wu-ftpd, as seen in Listing 22.3. 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 it 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 22.3. 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 only parsed 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  ]  

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

Starting the Very Secure FTP Server (vsftpd) Package

Previous versions of Red Hat's Linux distributions required you to edit a file named vsftp under the /etc/xinetd.d directory in order to enable and start the Very Secure FTP server, vsftpd. However, with Fedora you can now simply use the system-config-services client or service command to start vsftpd. For example, start the server using the service command like this:

 # service vsftpd start Starting vsftpd for vsftpd:                                [  OK  ] 

Use the system-config-services client or service command to start, stop, or restart the vsftpd server. Do not run two FTP servers on your system at the same time!

TIP

You can also use the shell script named vsftpd under the /etc/rc.d/init.d directory to start, stop, restart, and query the vsftpd server. You must have root permission to use the vsftpd script to control the server, but any user can query the server (to see if it is running and to see its Process ID number) using the status keyword like this:

 $ /etc/rc.d/init.d/vsftpd status 


     < Day Day Up > 


    Red Hat Fedora 4 Unleashed
    Red Hat Fedora 4 Unleashed
    ISBN: 0672327929
    EAN: 2147483647
    Year: 2006
    Pages: 361

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net