PDA

View Full Version : Turn off ProFTPd completely?



SlashChick
06-30-2004, 03:16 PM
Hello,

One of my clients has a dedicated with DirectAdmin. He'd like to turn off proftpd completely for security reasons (he uses SFTP.) What's the best way to do this? I ran chkconfig --level 2345 proftpd off, but DA's service will still auto-restart proftpd if it discovers it is not running.

I would like to keep it installed in case he needs to run it at some point in the future.

Thank you!

nobaloney
06-30-2004, 03:45 PM
Shut it down in the admin control panel.

Then find the daemon's executable file, and rename it from proftpd to proftpd.off

Then no one can restart it.

Jeff

DirectAdmin Support
07-01-2004, 10:32 AM
Yes, DA won't restart a service if it's set to OFF in the /usr/local/directadmin/data/admin/services.status file.

John

nobaloney
07-01-2004, 10:56 AM
John,

The reason I answered the way I did was to make sure it won't restart automatically on a reboot.

Can you verify that turning it off in the control panel will keep it from coming back up in a reboot?

Thanks.

Jeff

DirectAdmin Support
07-02-2004, 11:53 AM
Hello,

Jeff, you are correct, hence my "yes" :). Disabling it with "chkconfig proftpd off" or by editing the boot script or renaming the binary will all work.

John

SlashChick
07-02-2004, 01:03 PM
This worked...thanks!