Link to home
Start Free TrialLog in
Avatar of PsiCop
PsiCopFlag for United States of America

asked on

ftp client doesn't work as regular user

System: Solaris 8 with latest Recommended Patches and Maintenance Update #7

When I login as my regular user account and try to ftp to another host, it doesn't work:

   foo@bar /home/foo 1 % ftp host.domain.com
   ftp: ftp/tcp: unknown service
   foo@bar /home.foo 2 % which ftp
   /usr/bin/ftp

If I use "su" and become super-user, I can use the ftp command with no problem

The ftp program is /usr/bin/ftp in both cases (verified by "which ftp")

Why do I get this "unknown service" error message? It occurs even if I try to just enter interactive mode (i.e. do not supply a hostname)
Avatar of PsiCop
PsiCop
Flag of United States of America image

ASKER

Well, I just answered my own Question, so I'm going to post the solution here, then ask a Moderator to PAQ it.

I found the Answer in SunSolve article ID14440. The problem was that /etc/inet/services was set to mode 600. It SHOULD have been set to 644, as recommended by Sun and a host of other sources. My only guess is that I got a little overzealous locking down the system and changed the mode after editing it to harden the OS.

Once the mode was changed, ftp worked fine.
ASKER CERTIFIED SOLUTION
Avatar of Lunchy
Lunchy
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial