Sample Linux FTP

  $ cat /etc/xinetd.d/wu-ftpd


  # default : on

  # the wu-ftpd FTP server serves

  # FTP connections.  It uses

  # $ \normal, unencrypted usernames and

  # passwords for authentication


  service ftp

  {

   socket_type  = stream

   wait  = no

   user  = root

   server  = /usr/sbin/in.ftpd

   server_args  = -l -a

   log_on_success  += DURATION USERID

   log_on_failure  += USERID

   nice  = 10

   disable  = no

  }


 

Note

 

socket_type 

   this is usually either dgram for the datagram service provided by UDP, or stream for the byte stream service provided by TCP

wait 

   dgram sockets require xinetd to wait, and stream sockets permit xinetd to proceed without waiting

user 

   normally, this is a root, but for security reasons, some processes run under the username

nobody 

   server this is the path to the program that xinetd should start when it detects activity on the port.

log_on_success 

   this defines the information that is logged when a successful connection is made to the FTP service.   

   Instead, xinetd will combine both attribute settings and log the client's address (HOST), the process ID of the service (PID), the amount of time the client's

   connected to the server(DURATION), and the username used to log in to the server(USERID).

nice 

   sets the scheduling priority for server program.

disable 

   If disable is set to no, the service is enabled and xinetd runs the service when it receives a connection request on this server's port