LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2005, 08:55 PM   #1
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Rep: Reputation: 15
Problem with vsftpd


here is my vsftpd file in /etc/xinetd.d

Code:
[root@NPMS-6 xinetd.d]# more vsftpd
# default: off
# description: The vsftpd FTP server serves FTP connections. It uses \
#       normal, unencrypted usernames and passwords for authentication.
service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/vsftpd
        nice                    = 10
        disable                 = no
}
but i am unable to FTP to the machine.

this is what i get when i try to connect to the machine

Code:
[root@NPMS-6 xinetd.d]# ftp localhost
ftp: connect: Connection refused
ftp>

what other way to correct this problem?
 
Old 07-04-2005, 11:01 PM   #2
razikh
LQ Newbie
 
Registered: Jun 2004
Location: bangalore,india
Distribution: SLES 9 , OES , Redhat AS 3
Posts: 6

Rep: Reputation: 0
Lightbulb VSFTPD

Hi,

First of all make sure that you have turned off your firewall or allowed ftp port for access.

Then make sure that vsftpd daemon is started and running. Once done you must be able to connect.

For Ex: turning of firewall..
service iptables stop
then start ftp daemon service vsftpd start
 
Old 07-04-2005, 11:45 PM   #3
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Original Poster
Rep: Reputation: 15
ok when i stopped the iptables it stopped successfuly

Code:
[root@NPMS-6 xinetd.d]# service iptables stop
Flushing all chains:                                       [  OK  ]
Removing user defined chains:                              [  OK  ]
Resetting built-in chains to the default ACCEPT policy:    [  OK  ]
You have new mail in /var/spool/mail/root
but when i try to start the vsftpd service here is what i get.

Code:
[root@NPMS-6 xinetd.d]# service vsftpd start
vsftpd: unrecognized service

plz help
 
Old 07-04-2005, 11:57 PM   #4
razikh
LQ Newbie
 
Registered: Jun 2004
Location: bangalore,india
Distribution: SLES 9 , OES , Redhat AS 3
Posts: 6

Rep: Reputation: 0
Lightbulb VSFTPD

Alright...

This means that vsftpd is not installed in your box.
Just to check the availability.., type,

rpm -q vsftpd

this must show you vsftpd package installed.

If not vailable, install vsftpd package., just download latest rpm for redhat, then

execute...,

rpm -i <downloaded rpm>

once done., start the service., it will work.
 
Old 07-04-2005, 11:58 PM   #5
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Original Poster
Rep: Reputation: 15
Code:
[root@NPMS-6 xinetd.d]# rpm -q vsftpd
vsftpd-1.1.0-1
 
Old 07-05-2005, 12:05 AM   #6
razikh
LQ Newbie
 
Registered: Jun 2004
Location: bangalore,india
Distribution: SLES 9 , OES , Redhat AS 3
Posts: 6

Rep: Reputation: 0
VSFTPD..

ok...

we have two more options,

1. execute

/etc/init.d/vsftpd start

if it says unrecognized service., then


2. Reinstall the package..
 
Old 07-05-2005, 12:09 AM   #7
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Original Poster
Rep: Reputation: 15
Code:
[root@NPMS-6 xinetd.d]# /etc/xinetd.d/vsftpd start
-bash: /etc/xinetd.d/vsftpd: Permission denied
i am running as root. how can this be possible
 
Old 07-05-2005, 12:21 AM   #8
razikh
LQ Newbie
 
Registered: Jun 2004
Location: bangalore,india
Distribution: SLES 9 , OES , Redhat AS 3
Posts: 6

Rep: Reputation: 0
Not a problem..

just assign permissions and try to start.....


chmod 777 /etc/init.d/vsftpd

/etc/init.d/vsftpd start


let me know if it works..,
 
Old 07-05-2005, 12:22 AM   #9
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Original Poster
Rep: Reputation: 15
Code:
[root@NPMS-6 xinetd.d]# chmod 777 /etc/xinetd.d/vsftpd
[root@NPMS-6 xinetd.d]# /etc/xinetd.d/vsftpd start
ftp: unrecognized service
/etc/xinetd.d/vsftpd: line 6: socket_type: command not found
/etc/xinetd.d/vsftpd: line 7: wait: `=': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 7: wait: `no': not a pid or valid job spec
/etc/xinetd.d/vsftpd: line 8: user: command not found
/etc/xinetd.d/vsftpd: line 9: server: command not found
nice: =: No such file or directory
/etc/xinetd.d/vsftpd: line 11: disable: command not found
 
Old 07-05-2005, 12:30 AM   #10
razikh
LQ Newbie
 
Registered: Jun 2004
Location: bangalore,india
Distribution: SLES 9 , OES , Redhat AS 3
Posts: 6

Rep: Reputation: 0
ok..buddy...


lets go for reinstall...

download latest vsftpd rpms and install......or u can also try reinstalling the available rpms from CD...

You got to force the installation.., execute following with downloaded or avalable rpms.,

rpm -ivh --force <vsftpd.rpm>
 
Old 07-05-2005, 12:32 AM   #11
bahadur
Member
 
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141

Original Poster
Rep: Reputation: 15
the only problem is that the only way i can connect to this machine is through telnet.

there is no other way. it is in another city thanks for the help
 
Old 07-05-2005, 04:09 PM   #12
jhumeston
Member
 
Registered: Mar 2004
Posts: 50

Rep: Reputation: 15
if you have vsftpd running under xinetd then you will not see it under /etc/init.d/vsftpd as a script. If you have already restarted xinetd then you will have to check the configuration in /etc/vsftpd.conf.

I would try to restart xientd first. "/etc/init.d/xinetd restart"
to confirm that its running type "ps -ef |grep vsftpd" if its running you will see something like this:

root 2510 1 0 May10 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

if its not running, then there is a configuration problem in the vsftpd.conf file etc.
 
  


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
vsftpd settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
Yet ANOTHER vsftpd problem munkies Linux - Software 4 08-01-2005 06:29 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 01:05 AM
vsftpd problem.. yenonn Linux - Networking 9 07-08-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration