3. How to set up your FSP server

Setting FSP server is a easy task. Majority of people runs FSP server in read only mode. In this mode fspd needs to know only home directory and port number. Both can be supplied by command line arguments to fspd.

If you need additional features, such as logging, you will need to have Section 3.3

3.1. How to install fsp server

FSP server is included in main FSP package. See Section 2 first. FSP server for windows is in the Section 4.5.

Server can be installed as inetd service or standalone. I prefer inetd installation, because modification of system startup scripts is not needed.

Server can operate even without user supplied configuration file fspd.conf. Basic setup can be easily done by command line arguments.

3.2. How to quickly install fsp server

Add following line to your /etc/inetd.conf

ftp dgram udp wait ftp /usr/local/bin/fspd in.fspd -d /home/ftp
This easy setup will run fsp server on standard port 21, home directory set to /home/ftp and effective user set to ftp. If you do not have configured temporary directory in fspd.conf, fsp server will run in read-only mode.

Some inetd server uses slightly different syntax of inetd.conf file. Consult your local man pages for inetd and inetd.conf.

3.3. How to setup a basic fspd.conf

Example config file for fsp server is called fspd.conf and can be found in distribution. This file needs to be installed as /usr/local/etc/fspd.conf or you can specify alternate location by -f command line switch passed to fspd.

Configuration file itself is commented. Read comments inside.

3.4. How can I start the fspd automagicly on reboot?

FIXME. Use init scripts ;) or run it from inetd.

3.5. How to setup restrictions on directories?

FIXME. See manual page fspd(1).