LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-11-2004, 11:25 AM   #1
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Rep: Reputation: 15
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
 
Old 08-11-2004, 04:11 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you are using xinetd then you just need to make sure that xinetd is started - it will start vsftpd.
 
Old 08-12-2004, 02:01 AM   #3
FrostBot
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Kubuntu 10.10
Posts: 134

Rep: Reputation: 15
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.
 
Old 08-12-2004, 04:33 AM   #4
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Original Poster
Rep: Reputation: 15
OK, I'll try restart xinetd. But why does it give those error messages when I try to restart VSFTPd?
 
Old 08-12-2004, 01:35 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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".
 
Old 08-12-2004, 03:47 PM   #6
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Original Poster
Rep: Reputation: 15
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
 
Old 08-12-2004, 05:17 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I assume you mean vsftpd.conf?

Where is it saved? /etc/vsftpd.conf?
 
Old 08-13-2004, 03:30 AM   #8
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Original Poster
Rep: Reputation: 15
I meant vsftpd.conf...(was a typo). It is indeed saved under /etc/vsftpd.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTP question basemodel Linux - Software 1 02-27-2004 11:50 PM
VSFTP question on configuration? gsmonk Linux - Networking 0 08-05-2003 02:51 PM
vsftp Question armcfall Linux - Software 2 06-24-2003 07:41 PM
vsftp question knueven7 Linux - Software 3 05-08-2003 02:52 PM
question of vsFTP on RH8 sieeus Linux - Software 1 10-21-2002 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration