Upgrade ProFTPD to new version
 
Just a very quick guide to get a new proftpd server up.
First, check in /etc/proftpd/proftpd.conf under which user proftpd runs, and make a backup copy of the configuration file

This will compile/isntall proftpd using path /usr/local/proftpd and user/group nobody/nogroup:
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3c.tar.gz
tar -xzf proftpd-1.3.3c.tar.gz
cd proftpd-1.3.3c

install_user=nobody install_group=nogroup ./configure --prefix=/usr/local/proftpd --sysconfdir=/etc
make
make install

Sysconfig-Dir is where proftpd.conf is stored.
Using the above configure-command installs into non-standard directory. Doing this, you also have to change /etc/init.d/proftpd (replace old with correct paths). I didnt fully get it to work using this command, so I replaced my existing proftpd (use this command):
install_user=nobody install_group=nogroup ./configure --prefix=/usr --localstatedir=/var/run --with-libraries=/usr/lib --sysconfdir=/etc
make
make install


To test the current proftpd configuration file with the newly compiled server:
/usr/local/proftpd/sbin/proftpd -t -d10 -c /etc/proftpd/proftpd.conf


Default directory for configuration file is /etc/proftpd.conf. Make sure, that it contains the following parameter:
DefaultRoot ~

This will chroot ("jail") every user into his home directory.


Source:
- http://proftpd.org/docs/howto/Upgrade.html
- http://articles.techrepublic.com.com/5100-22_11-5287480.html
 
admin / Nov 02, 2009
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2019 / lookass.ch
makememad@lookass.ch