1822320 Members
6145 Online
109642 Solutions
New Discussion юеВ

ftp error

 
SOLVED
Go to solution
zhangjie_1
Occasional Contributor

ftp error

the error is:

ftp>ls
200 port command successful.

425 can't create data socket(xxx.xxx.xxx.xxx,20): address already in use.
ftp>

5 REPLIES 5
KapilRaj
Honored Contributor

Re: ftp error

r u running out of memory on the ftp server ?.

Kaps
Nothing is impossible
Fred.Wu
Frequent Advisor

Re: ftp error

Maybe reach a maximum connection accept?
fred
Shaikh Imran
Honored Contributor

Re: ftp error

hi,
After checking the above also try restarting the inetd.
/sbin/init.d/inetd stop
/sbin/init.d/inetd start


Regards,

I'll sleep when i am dead.
YoungHwan, Ko
Valued Contributor
Solution

Re: ftp error

FTP Trouble Shooting

1.If the message is [ftp: connect: Connection refused]
==> check the netd daemon
# ps -ef | grep inetd
output are must be
root 3730 2217 1 13:54:57 ttyp2 0:00 grep inetd
root 2324 1 0 13:43:28 ? 0:00 inetd
==> if inetd is not running type on command line
# inetd

2. if the message are [530 access denied login failed or 530 User [name] access denied]
A. Check the netrc in the User's home directory and then rename it to netrc.old.
B. Check /etc/ftpusers.
if there are any hosts then that hosts are refused to access.
C. check /etc/shells.
this file has list for system's valid shell. each path have to be writtend with absolut path, and if you want to know the valid shell use '# man getuershell'

Example entries:

/bin/sh <<<-
/bin/rsh |
/bin/ksh |
/bin/rksh > 9.X valid shells
/bin/csh |
/bin/pam |
/usr/bin/keysh |
/bin/posix/sh <<<-

/sbin/sh <<<-
/usr/bin/sh |
/usr/bin/rsh |
/usr/bin/ksh > 10.X valid shells
/usr/bin/rksh |
/usr/bin/csh |
/usr/bin/keysh <<<-

3. If the message is [ftp: ftp/tcp: unknown service]
Check /etc/services file.
==> if this file is modify type this command.
# inetd -c

├в ┬╗ /etc/services file's permission are 444 (-r--r--r--).

4. If the message is [421 Service not available, remote server has closed connection]

check /var/adm/inetd.sec

5. If the message is [150 Opening ASCII mode data connection for
/usr/bin/ls. crt0: ERROR couldn't open /usr/lib/dld.sl
errno:000000002]

==> 'ls' version is not correct at /home/ftp/usr/bin
# cp /sbin/ls /home/ftp/usr/bin/
bhavin asokan
Honored Contributor

Re: ftp error

earlier it was working or not.

check your /etc/services
for which port 20/tcp got assigned.
it should be for ftp-data

regds,