SEARCH

How-To Geek

Disable ProFTP on CentOS

I realize this is probably only relevant to about 3 of the readers, but I’m posting this so I don’t forget how to do it myself! In my efforts to ban the completely insecure FTP protocol from my life entirely, I’ve decided to disable the FTP service running on the How-To Geek server, which is running the CentOS operating system.

For whatever reason, I couldn’t find a place in plesk to do this, and I just despise everything about plesk anyway… so I took the manual approach.

First, look in your /etc/xinetd.d/ directory and see if there’s a file named psa_ftp in there. If not, you might have to make this change in your /etc/xinetd.conf file.

Open up the file as root, and look for the following section:

service ftp
{
        disable         = yes
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        instances       = UNLIMITED
        server          = /usr/sbin/in.proftpd
        server_args     = -c /etc/proftpd.conf
}

Change the disable = no line to disable = yes as shown above.

Run the following command to restart xinetd

/etc/init.d/xinetd restart

Good to go!

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 07/23/07

Comments (8)

  1. michael magua

    Or just disable xinetd all together…

    chkconfig –levels 2345 xinetd off

  2. The Geek

    That was my first thought… but qmail is running through xinetd.

  3. GeroZ

    Thank you very much. I guess I find back here every other year when I get to fix a CentOS installation – first thing usually is to disable proftpd. So – I googled for “centos disable proftpd”, and here I am.

    Thank you very much! Please never take down this extremely helpful page. :)

  4. EthanJ

    Or even just ‘service proftpd stop’

  5. felipe1982

    >Or even just ’service proftpd stop’
    What happens when you reboot, wiseguy?

  6. amdtaufik

    There is also proftpd running with lampp … just do a /opt/lampp stopftp

  7. Claude

    Hi Geek, thx for the info, it gave me a good start. So…

    Confirmed. On CentOS 5.5, in a Plesk container v9.5.3. It works.

    Additional findings:
    I was using winSCP through SSH on some other port while modify the xinetd.conf file. No prob. I learned that FTP thrue SSH does not need VSFTPD service running to connect. But straight FTP without SSH does. And so I had to renamed the x99vsftpd files in /etc/rc.d/rc{2,3,4,5}.d/. (“x” being a “K”, kill, or a “S”, start, and “99″ being the sort order). In my case, from “K60vsftpd” I renamed them “S60vsftpd” so the vsftpd daemon would start at boot time, have access to FTP on port 21. Of course I did review the security of both vsftpd and user accounts that can login on ftp.

    Regards.

  8. Pissedoff

    I was looking for how to disable my touchpad or touchclick and this stupid page was the first result I got on yahoo. Thanks alot idiots.

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!