A few configuring questions with regard to services like vsftpd
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.
A few configuring questions with regard to services like vsftpd
I assume that after I change the .conf file for vsftpd, I need to stop and start the service again. How is that done?
By the way, instead of learning the proper way, I tried something stupid that seems to have broke things a little bit.
I tried to kill the vsftpd process and then run "/usr/sbin/vsftpd &" again (as initially instructed by a certain website (vsftpdrocks.org) hoping that would restart it. Instead it tells me:
and I got:
[2] 1394
[1] Terminated /usr/sbin/vsftpd
Anyway, someone please give me an idea of how to do this properly, and let me know if my little process killing thing will require any cleaning up or a reboot (I have no idea what the above output means).
As a quick follow up, although it didn't look pretty (as per the above output) it apparently worked. User/password ftp is now working on the machine for me.
Still, I figure there is a better way than issuing a kill command on the vsftpd process.
If it's configured for standalone mode which should be indicated in your conf file, that should be the proper way usually to start vsftpd. If not in standalone mode, usually it's invoked through inetd or maybe another init script, depending on what distribution you are using.
Still, I figure there is a better way than issuing a kill command on the vsftpd process.
If you don't have a script to start and stop the services, write one and simply make the killing of it do it in a nice way, like kill -15 (SIGTERM) which will allow the service/daemon to cleanup any leftovers before completing dying. Kill -9 should be avoided in most cases, it's the last case effort if all else fails when you're trying to kill a process.
If you don't have a script to start and stop the services, write one and simply make the killing of it do it in a nice way, like kill -15 (SIGTERM) which will allow the service/daemon to cleanup any leftovers before completing dying. Kill -9 should be avoided in most cases, it's the last case effort if all else fails when you're trying to kill a process.
Ah, so killing isn't a bad idea, I just have to do it the right way.
I am currently running standalone mode, but I'm considering the xinetd method.
One more question, what does the & symbol mean as an option after starting vsftpd?
The problem below been explained to me now in another thread.
-------------------------------------------
OK, I restarted xinetd but it "failed"
My /var/log/messages says this:
Code:
Aug 20 14:36:57 serv2 xinetd[7180]: bind failed (Address already in use (errno = 98)). service = ftp
Aug 20 14:36:57 serv2 xinetd[7180]: Service ftp failed to start and is deactivated.
Aug 20 14:36:57 serv2 xinetd[7180]: 7180 {init_services} no services. Exiting...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.