LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Starting vsftpd for vsftpd: 500 OOPS (https://www.linuxquestions.org/questions/linux-software-2/starting-vsftpd-for-vsftpd-500-oops-4175457008/)

linuxquestions_forum_use 04-05-2013 02:57 PM

Starting vsftpd for vsftpd: 500 OOPS
 
If I'm runnign vsftpd and I make a change to my vsftpd.conf file and want to restart vsftpd, what command do I type?


I tried:

sudo /etc/init.d/vsftpd restart

and

service vsftpd restart

but all I got was:

Starting vsftpd for vsftpd: 500 OOPS: vsftpd: not configured for standalone, must be started from inetd

I suppose I could reboot the PC, but figured there was a easier way just to restart vsftpd.

Thanks!

linosaurusroot 04-05-2013 04:25 PM

If vsftpd is started from inetd then it's normally not running (confirm with ps) and starts running (and reads vsftpd.conf)after inetd detects the traffic. So do some FTP activity and test whether your new config works.

Z038 04-05-2013 04:30 PM

It sounds like you have listen=NO coded in your vsftpd.conf. Code listen=YES if you want it to run standalone. That will allow you to restart it with the "service vsftpd restart" command.

In order to restart vsftpd when it is running from inetd, you need to restart inetd, or you can give it a HUP signal.

as root:

/etc/init.d/inetd restart (or /etc/rc.d/inetd restart)

or

killall -HUP inetd

linuxquestions_forum_use 04-10-2013 04:33 PM

I haven't tried it yet, but I think I need to use this command:

# /etc/init.d/xinetd reload or
# /etc/init.d/inetd reload*

jefro 04-11-2013 11:51 AM

I was looking for a new issue with opensuse on vsftp and came across a lot of posts on that issue. I get the feeling one said to change a name some place to just ftp but do some web searches for this. It is pretty common.

chrism01 04-11-2013 09:13 PM

Post #2 sounds right to me.
If its been installed to run from inetd (usually xinetd on Linux), then you need to check the cfg file in /etc/xinetd.d (one per service).
As above, xinetd does the actual listening and activates relevant service ONLY on receiving a request for that service.
One the request has been fulfilled, the (called) svc shuts down again.
The key line is 'disable = yes/no' in the eg vsftpd cfg file under /etc/xinetd.d.

Section 42.5 http://www.linuxtopia.org/online_boo...ion/index.html. In fact there are several sections relating to xinetd there.
Also note xinetd responds to tcp_wrappers ie hosts.allow, hosts.deny, so check those as well.


All times are GMT -5. The time now is 12:22 PM.