LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VSFTP question (https://www.linuxquestions.org/questions/linux-newbie-8/vsftp-question-216223/)

WiWa 08-11-2004 10:25 AM

VSFTP question
 
I installed vsftpd FTP server on a Suse 9.1. I configured the server according to the following document:
http://www.siliconvalleyccie.com/lin...ftp-server.htm

I experience problems restarting the vsftpd service. I tried several things:

thorgal:/ # /etc/xinetd.d/vsftpd restart
/etc/xinetd.d/vsftpd: line 6: service: command not found
/etc/xinetd.d/vsftpd: line 8: socket_type: command not found
/etc/xinetd.d/vsftpd: line 9: protocol: command not found
/etc/xinetd.d/vsftpd: line 10: wait: `=': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 10: wait: `no': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 11: user: command not found
/etc/xinetd.d/vsftpd: line 12: server: command not found
disable: Operation failed: client-error-not-found


thorgal:/ # /usr/sbin/vsftpd restart
500 OOPS: vsftpd: cannot open config file:restart

Are there any more options that I didn't try. Does anyone know why it is complaining?

When I FTP, I get

thorgal:/ # ftp 10.0.0.13
Connected to thorgal.wauters-mannaert.be.
500 OOPS: missing value in config file for: Allow anonymous FTP?
ftp>

So I wanted to change my vsftp.conf file to allow anonymous FTP, and then wanted to restart the FTP server to re-read the conf file, but then I got the above mentioned probs.

Any hints is more than welcome.

Thanka WiWa

david_ross 08-11-2004 03:11 PM

If you are using xinetd then you just need to make sure that xinetd is started - it will start vsftpd.

FrostBot 08-12-2004 01:01 AM

You can also restart you computer, or you can kill the process by typing "top" in a terminal as root and then type "k" and then type in the pid # of vsftpd, then "y" to kill it.

WiWa 08-12-2004 03:33 AM

OK, I'll try restart xinetd. But why does it give those error messages when I try to restart VSFTPd?

david_ross 08-12-2004 12:35 PM

Re: VSFTP question
 
Quote:

Originally posted by WiWa
thorgal:/ # /etc/xinetd.d/vsftpd restart
/etc/xinetd.d/vsftpd: line 6: service: command not found
/etc/xinetd.d/vsftpd: line 8: socket_type: command not found
/etc/xinetd.d/vsftpd: line 9: protocol: command not found
/etc/xinetd.d/vsftpd: line 10: wait: `=': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 10: wait: `no': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 11: user: command not found
/etc/xinetd.d/vsftpd: line 12: server: command not found
disable: Operation failed: client-error-not-found

Using that command you are trying to run a configuration file

Quote:

Originally posted by WiWa
thorgal:/ # /usr/sbin/vsftpd restart
500 OOPS: vsftpd: cannot open config file:restart

Using this command you are trying to start the vsftpd server in standalone mode and telling it to use a configuration file called "restart".

WiWa 08-12-2004 02:47 PM

I did try to restart the vsftpd FTP server through restarting the xinetd service. Here's the story in chronological order ;-)

Code:

thorgal:/etc # /etc/init.d/xinetd stop
Shutting down xinetd:                                                                                    done
thorgal:/etc # /etc/init.d/xinetd start
Starting INET services. (xinetd)                                                                        done
thorgal:/etc # ftp 10.0.0.13
Connected to thorgal.wauters-mannaert.be.
500 OOPS: missing value in config file for: Allow anonymous FTP?
ftp> bye

I changed in the config file the entry to allow anonymous FTP (I will find out later how to disable correctly) and then did the following again:

Code:

thorgal:/etc # /etc/init.d/xinetd stop
Shutting down xinetd:                                                                                    done
thorgal:/etc # /etc/init.d/xinetd start
Starting INET services. (xinetd)                                                                        done

but got again the following:

Code:

thorgal:/etc # ftp 10.0.0.13
Connected to thorgal.wauters-mannaert.be.
500 OOPS: missing value in config file for: Allow anonymous FTP?
ftp> bye

So it seems like it does not read my vsftod.conf file somehow. For completion, the whole file is below:

Code:

dirmessage_enable=YES
ftpd_banner="blabla"
local_enable=YES
anonymous_enable=YES
anon_world_readable_only=YES
syslog_enable=YES
log_ftp_protocol=YES
xferlog_enable=YES
vsftpd_log_file=/var/log/vsftpd.log
connect_from_port_20=YES
pam_service_name=vsftpd
listen=NO


david_ross 08-12-2004 04:17 PM

I assume you mean vsftpd.conf?

Where is it saved? /etc/vsftpd.conf?

WiWa 08-13-2004 02:30 AM

I meant vsftpd.conf...(was a typo). It is indeed saved under /etc/vsftpd.conf


All times are GMT -5. The time now is 03:41 AM.