Pure-FTPd in FreeBSD 6.2 (and 7.2, and probably 8.0)

Lars Sommer, [email protected], 2007-10-18
DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining.

Normally I use the build in ftpd in FreeBSD. But on webservers and likely, 
 virtual accounts and restrictions are needed. Here I use Pure-FTPd.

Install this:
ftp/pure-ftpd

Get an initial config file:
 cp /usr/local/etc/pure-ftpd.conf.sample /usr/local/etc/pure-ftpd.conf

Add to config file:
PureDB          /usr/local/etc/pureftpd.pdb
AltLog		clf:/var/log/pureftpd.log
TLS		1	#REMEMBER to fix a cert first!!

Add the system user account the ftpd should use:
 pw useradd ftpuser -d /dev/null -s /usr/sbin/nologin

Enable in /etc/rc.conf:
pureftpd_enable="YES"

Generate the SSL cert:
openssl req -x509 -nodes -newkey rsa:2048 -keyout /usr/local/etc/ssl/private/pure-ftpd.pem -out /usr/local/etc/ssl/private/pure-ftpd.pem
chmod 600 /usr/local/etc/ssl/private/*.pem

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *