Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
vsftpd is the Very Secure File Transfer Protocol Daemon. The server can be launched via a “super-server” such as inetd(8) or xinetd(8). Alterna-tively, vsftpd can be launched in standalone mode, in which case vsftpd itself will listen on the network. This latter mode is easier to use, and recommended. It is activated by setting listen=YES in /etc/vsftpd/vsftpd.conf. Direct execution of the vsftpd binary will then launch the FTP service ready for immediate client connections.
That doesn't say it but of course you probably need to change the /etc/xinetd.d/vsftpd file to have "disable = yes" or not have that file at all so it doesn't try to use xinetd to start LISTEN.
You EITHER start it with xinetd.d OR with "service vsftpd start" but NOT with both. The startup script for the latter is in /etc/init.d (notice the difference - xinetd.d and init.d are two different things which unfortunately have similar names but different purposes).
In /etc/xinet.d do a "grep -i vsftpd *" to see if any file is set to start it. If so you need to set that disable option I noted in earlier post.
In /etc/init.d make sure you have vsftpd. You shouldn't have to modify this file at all. You use chkconfig to tell it what run levels to start in. Running "chkconfig --list vsftpd" will show you if it is already set to run in any runlevels.
As noted in the above quote the preferred method is to run vsftpd as a stand alone daemon - that means use the /etc/init.d, chkconfig, service stuff rather than any /etc/xinetd.d stuff. You may not have anything in /etc/xinetd.d for vsftpd if you have a standard install. You may also not have it in /etc/init.d and may need to install with "yum install vsftpd".
The point in xinetd is to listen for services that aren't needed all the time so as free resources. If you are only getting one ftp hit a week then it doesn't make much sense to run vsftpd 24-7 (i.e. via the init.d init script). If however you are getting an ftp connection every 10 seconds it doesn't make much sense to run it from xinetd.d as it will essentially be running all the time anyway. This is a decision you can make with almost every daemon. However as noted in the above man page they say the preferred method is to run it as a standalone anyway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.