LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with vsftpd (https://www.linuxquestions.org/questions/linux-software-2/problem-with-vsftpd-340048/)

bahadur 07-04-2005 08:55 PM

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?

razikh 07-04-2005 11:01 PM

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

bahadur 07-04-2005 11:45 PM

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

razikh 07-04-2005 11:57 PM

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.

bahadur 07-04-2005 11:58 PM

Code:

[root@NPMS-6 xinetd.d]# rpm -q vsftpd
vsftpd-1.1.0-1


razikh 07-05-2005 12:05 AM

VSFTPD..
 
ok...

we have two more options,

1. execute

/etc/init.d/vsftpd start

if it says unrecognized service., then


2. Reinstall the package..

bahadur 07-05-2005 12:09 AM

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

razikh 07-05-2005 12:21 AM

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..,

bahadur 07-05-2005 12:22 AM

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


razikh 07-05-2005 12:30 AM

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>

bahadur 07-05-2005 12:32 AM

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

jhumeston 07-05-2005 04:09 PM

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.


All times are GMT -5. The time now is 02:39 PM.