First I fetched the tarball:
/usr/ports/ftp/
fetch -P ftp://ftp.tos.net/pub/proftpd/proftpd-1.2.0pre9.tar.gz
tar xvfz proftpd-1.2.0pre9.tar.gz
cd proftpd-1.2.0pre9
In the README file, you'll find a reference to --enable-force-setpassent.
I eventually figured out that this refers to a command line parameter to ./configure.
You should also read INSTALL.
I ran the configure script like this:
install_user=nobody install_group=wheel ./configure
--enable-force-setpassent
This will run proftpd as user nobody in group wheel.
Note that the program will install to a different location than that of the port.
| port |
/usr/local/libexec/proftpd |
| this install |
/usr/local/sbin/proftpd |
I had the port, so first I deinstalled the port:
pkg_delete proftpd-1.2.0p8
The next step was:
make
make install
Don't forget to update your startup script to reflect the new location:
more /usr/local/etc/rc.d/proftpd.sh
#!/bin/sh
/bin/mkdir -p /var/run/proftpd
if [ -x /usr/local/sbin/proftpd ]; then
/usr/local/sbin/proftpd && echo -n ' proftpd'
fi
With this new version, I removed:
AuthPAMAuthoritative No
from /usr/local/etc/proftpd.conf so proftpd would use PAM.
Actually, the logins worked with or without PAM. So it's your choice. |