Turn off ProFTPd completely?

SlashChick

Verified User
Joined
Oct 14, 2003
Messages
54
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!
 
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
 
Yes, DA won't restart a service if it's set to OFF in the /usr/local/directadmin/data/admin/services.status file.

John
 
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
 
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
 
Back
Top