Solved

ftp client doesn't work as regular user

Posted on 2003-11-29
2
411 Views
Last Modified: 2013-12-27
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)
0
Comment
Question by:PsiCop
2 Comments
 
LVL 34

Author Comment

by:PsiCop
Comment Utility
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.
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
Comment Utility
PAQed, with points refunded (125)

Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now