Operating System - Linux
1752727 Members
5613 Online
108789 Solutions
New Discussion юеВ

cannot ftp login...urgent!!

 
SOLVED
Go to solution
mw_4
Frequent Advisor

cannot ftp login...urgent!!

Please help..

I have installed RH 7.1 x86
[root@ectest /root]# netstat -na|grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
After installing RH.. and reboot I cannot ftp login

then I execute the command
/etc/rc.d/init.d/xinetd restart
I can ftp login..
I don't understand.
Why rebooting each time
then I cannot ftp login
port 21 is enabled every time.

[root@ectest /root]# cat /etc/xinetd.d/wu-ftpd
# default: on
# description: The wu-ftpd 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/in.ftpd
server_args = -l -a
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
disable = no
}

No firewalls
Step by step
8 REPLIES 8
Tarek_1
Frequent Advisor

Re: cannot ftp login...urgent!!

Is xinetd enabled to start after boot?
Check with this command:
chkconfig --list xinetd
3-4-5 should be set to on
if they're set to off just set them to on.
Tarek
mw_4
Frequent Advisor

Re: cannot ftp login...urgent!!

[root@ectest /root]# chkconfig --list xinetd
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

[root@ectest /root]# ftp
ftp> o
(to) 0
Connected to 0.
421 Service not available, remote server has closed connection


what is the problem?
Step by step
Sergejs Svitnevs
Honored Contributor
Solution

Re: cannot ftp login...urgent!!

1. Go to http://updates.redhat.com/7.1/en/os/i386/ and try to download xinetd-2.3.7-4.7x.i386.rpm.
2. Install it with "rpm -Uv xinetd-2.3.7-4.7x.i386.rpm".
3. Re-start the machine.

Regards,
Sergejs
Sachin Patel
Honored Contributor

Re: cannot ftp login...urgent!!

Hi mw,
You don't have to install xinetd. It is ftp telnet problem not xinetd

1. What are the output of /var/log/messages when you try to ftp?

2. what rpm you have
#rpm -qa |grep tel
#rpm -qa |grep ftp

3. #chkconfig --list |grep telnet
4. #chkconfig --list |grep ftp

telnet/ftp are prot 23 and 21.

Thanks
Sachin
Is photography a hobby or another way to spend $
mw_4
Frequent Advisor

Re: cannot ftp login...urgent!!

[root@ectest /root]# rpm -aq|grep tel
telnet-server-0.17-10
telnet-0.17-10
[root@ectest /root]# rpm -aq|grep ftp
wu-ftpd-2.6.1-16
ftp-0.17-7
tftp-0.17-9
ncftp-3.0.2-2k
gftp-2.0.8-1
ftpcopy-0.3.4-1
tftp-server-0.17-9
anonftp-4.0-4
[root@ectest /root]# chkconfig --list telnet
telnet on
[root@ectest /root]# chkconfig --list ftp
error reading information on service ftp: No such file or directory
[root@ectest /root]# chkconfig --list wu-ftpd
wu-ftpd on

any other tips please...
Step by step
Balaji N
Honored Contributor

Re: cannot ftp login...urgent!!

http://www.unixguide.net/linux/faq/09.25.shtml

http://www.landfield.com/wu-ftpd/mail-archive/wu-ftpd/1996/Feb/0130.html

google and have a look at the wu-ftpd mailing lists.

btw, we use vsftpd and no issues with it. dont have a box running wu-ftpd around to have a look.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Sachin Patel
Honored Contributor

Re: cannot ftp login...urgent!!

You /etc/xinetd.d/telnet file should look like this

service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}


Your services file should have following lines uncommented

# grep telnet services
telnet 23/tcp
telnet 23/udp
rtelnet 107/tcp # Remote Telnet
rtelnet 107/udp
telnets 992/tcp
telnets 992/udp


Please post message from your /var/adm/messages file when you try to telnet or ftp.

Sachin
Is photography a hobby or another way to spend $
mw_4
Frequent Advisor

Re: cannot ftp login...urgent!!

Thanks Sergejs...
After reinstalling xinetd and restart the services
telnet & ftp are normal ...
Above tips that you give are very helpful

Thanks everybody !! ^^
Step by step