Friday, July 20, 2007

ftp woes

I installed pure-ftp on venus today. It took me 3 hours to actually be able to use it!! When I tried to logon from an ftp client, it would always say "530 authentication failure" or some such. It took me a long while to figure out that I needed to start the program in the special way that makes it read a config file when it starts, rather than just use command line options. Then I had to change the config file because the default behavior was to use PAM authentication (which is beyond my knowledge at this point) rather than plain old /etc/passwd authentication. Finally I got it working.

For some reason, when you start it regularly (meaning from the script in /etc/rc.d/init.d), it wants to get its config from command line options. To start it using a config file, you have to type in the following command:

/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf

/etc/pure-ftpd/pure-ftpd.conf is the config file. /usr/sbin/pure-config.pl is apparently a separate script that starts it and reads the config file as it starts. The regular start file is /usr/sbin/pure-ftpd I think.

What a mess! When computer reboots, I'll have to type in the above line again or put it in my local script. There must be an easier way.

No comments: