Disabling ftpd on Ubuntu

I wanted to disable FTPd on Ubuntu 10.10, but couldn’t figure out which ftp program I had installed. After checking the /etc/init.d folder, /etc/ folder and running a ‘find’ on anything that resembles an ftp program, here is what I found:

ftpd is part of openbsd-inetd, a service that is started automatically and can be configured via /etc/inetd.conf.

To disable FTPd:

1. Comment this line under /etc/inetd.conf (via sudo or as root)
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.ftpd

2. restart inetd (via sudo or as root)
/etc/init.d/openbsd-inetd restart

et voila!

Advertisement