PsiCop
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)
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)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.