1833163 Members
3455 Online
110051 Solutions
New Discussion

ftp error

 
Renante M. Yu_1
Occasional Advisor

ftp error

After converting our machine to trusted system, i encountered some error while trying to ftp to other other server. Heres the error msg:
ftp: ftp/tcp: unknown service
But the line of ftp service in the /etc/service & /etc/inetd.conf file is not commented out.
Please help.
Only dead people have seen peace
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: ftp error

Hi,

Did you try it with root's account?

Look at your /etc/services file. You should have a line for ftp. Also look at the permissions of /etc/services. Others should have read permissions.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
yogesh_4
Regular Advisor

Re: ftp error

Hi ,

If Ftp line is not commented then comment it out /etc/inetd.conf . then give #inetd -c . Again open /etc/inetd.conf , uncomment the Ftp line and then once agin give #inetd -c . Check whether Ftpd is running or not. Also check /var/adm/inetd.sec file for any deny policy.
Denver Osborn
Honored Contributor

Re: ftp error

I would really suspect that there is an issue with the /etc/services file. TO rule this out you have a few ways to test.

1) vi /etc/services and comment out the ftp entry then open a new line, add ftp service entry.

ftp 21/tcp

2) move /etc/services aside and use default config.

mv /etc/services /etc/services.orig
cp /usr/newconfig/etc/services /etc/services

Hope this helps!
-denver
Jim Mallett
Honored Contributor

Re: ftp error

Have you made any changes to your nsswitch.conf file? I've seen that error with the nsswitch.conf in an NIS environment. If NIS wasn't available, it wasn't continuing to "files".

And, as mentioned above...check permissions.

Jim

Hindsight is 20/20
Fragon
Trusted Contributor

Re: ftp error

Just another idea:
from your question I found "i encountered some error while trying to ftp to other other server.",do you mean error only occured when ftp to other server? Or other W.S. ftp to this server?
Please check the "other" server's ftp service also!

-ux
Caesar_3
Esteemed Contributor

Re: ftp error

Hello!

Try connect with root if it's work and with
other user no then check the permission of
/etc/services chould be (r--r--r--) for
all users read option.

Caesar