I’m running Ubuntu Server 10.04.2 and have installed ProFTPD. First I could connect to the server via FTP but not anymore.
First I change ServerType from inetd to standalone in /etc/proftpd/proftpd.conf. When I started ProFTPD I got OK, but when I check the status ProFTPD wasn’t running.
# sudo /etc/init.d/proftpd start * Starting ftp server proftpd [ OK ]
#/etc/init.d/proftpd status ProFTPd is started in standalone mode, currently not running.
I check the ProFTPD log:
# tail -f /var/log/proftpd/proftpd.log
failed binding to ::, port 21: Address already in use
From the log I got the message that ProFTPD failed to bind to port 21.
To get the PID of the process currently bound to port 21:
# fuser -n tcp 21
The PID that was using port 21 was 599.
To find what process uses that PID:
# ps -ef | grep 599
The process was inetutils-inetd. I uninstalled inetutils-inetd and reinstalled ProFTPD.
# sudo aptitude –purge remove inetutils-inetd
# sudo aptitude install proftpd -y
I also changed back to ServerType inetd in /etc/proftpd/proftpd.conf.
Leave a Reply