Using pureftpd

The principles discussed in this chapter with reference to vsftpd apply equally to pure-ftpd, but there are some differences in detail.

You can set up pure-ftpd to start in one of two ways: either as a service that starts at boot time or from xinetd as described for vsftpd.

If you choose the first method, you need to edit the configuration file /etc/pure-ftpd/pure-ftpd.conf and then run the command rcpure-ftpd start. To ensure that it starts at boot time, you need to run the command chkconfig pure-ftpd on or use YaST's runlevel editor. Despite the slightly confusing wording at the beginning of the configuration file, if you use this method the configuration file will be read when it starts, thanks to SUSE's init script.

If you choose to run pure-ftpd from xinetd, it does not read its configuration file when it starts up. You need to edit the file /etc/xinetd.d/pure-ftpd to include a line server_args = ...

To find out what needs to go after the = sign, you will need to run this command:

# /usr/sbin/pure-config-args /etc/pure-ftpd/pure-ftpd.conf

This parses the configuration file and converts the information in it to a long list of command-line switches that you can paste in. If you change the configuration file, you will need to repeat this process. For this reason alone, the first method of running pure-ftpd seems to be preferable, at least until you have created the configuration you want.

Was this article helpful?

0 0

Post a comment