LinuxDevCenter.com
oreilly.comSafari Books Online.Conferences.





Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.



ftpd

in.ftpd [options]

TCP/IP command. Internet File Transfer Protocol server. The server uses the TCP protocol and listens at the port specified in the ftp service specification. ftpd is usually started by xinetd and must have an entry in xinetd's configuration file, /etc/xinetd.conf. It can also be run in standalone mode using the -p option. There are several FTP daemons available. On many Linux distributions, the default is the Kerberos-supporting DARPA version, which we document here.

Options

-a

Require authentication via ftp AUTH. Allow anonymous users as well, if configured to do so.

-A

Require authentication via ftp AUTH, but allow only users who are authorized to connect without a password. Allow anonymous users as well, if configured to do so.

-C

Require local credentials for non-anonymous users. Prompt for a password unless the user forwards credentials during authentication.

-d, -v

Write debugging information to syslogd.

-l

Log each FTP session in syslogd.

-p port

Use port as the FTP control port instead of reading the appropriate port from /etc/services. This option will launch ftpd in standalone mode.

-q

Use PID files to record the process IDs of running daemons. This is the default. These files are needed to determine the current number of users.

-r file

Read Kerberos configuration from file instead of /etc/krb5.conf.

-s file

Read Kerberos V4 authentication information from file instead of /etc/srvtab.

-t n

Set default inactivity timeout period to n seconds. (The default is 15 minutes.)

-T n

Allow ftp clients to request a different timeout period of up to n seconds. (The default is 2 hours.)

-u umask

Set the default umask to umask.

-U file

Read the list of users denied remote access from file instead of /etc/ftpusers.

-w format

Specify the format for the remote hostname passed to login. Use one of the following formats:

ip

Pass the IP address.

n[,[no] striplocal]

Pass hostnames less than n characters in length, and IP addresses for longer hostsnames. Set n to 0 to use the system default. The striplocal portion of the option determines whether or not to strip local domains from hostnames. The default is to strip them.