Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
well that would suggest it's still running. note that disabling something on the boot options isn't the same as stopping it at that time. the output of "netstat -pant" will show all processes using tcp sockets.
You don't say what distro of Linux and which version of the distro.
Typically ftpd (the ftp daemon) can be started by itself, by inetd or by xinetd.
Type "lsof -i :21" to find out what process is LISTENING on port 21. If it shows inetd or xinetd then it is configured in one of those. If it shows ftpd then it is running on its own.
If it is running in inetd you can disable it by modifying /etc/inetd.conf. Just comment out (put a pound sign in front of) the line for ftp/ftpd. Then run "kill -1 <pid>" where <pid> is the process ID for inetd.
If it running in xinetd you need to cd /etc/xinetd.d and look for the file that starts ftpd (this may not be named ftpd itself - e.g. on my FC4 box it is a file named gssftp). In that file change the line that says "disable = no" to "disable = yes" then do "kill -1 <pid>" where <pid> is the process ID for xinetd.
If it is running as ftpd that means you're starting it as an independent daemon. You need to look for the startup script that starts it. Typically these are in /etc/rc.d - just grep for ftpd out of the files there. Note that the files in /etc/rc.d are base files - the actual start is done via links in /etc/rc?.d where the question mark is one of the run levels (2,3,4 or 5). You can stop it from starting automatically simply by removing the links you find to the /etc/rc.d file from the /etc/rc?.d files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.