Solved

ftp client doesn't work as regular user

Posted on 2003-11-29
2
415 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
ID: 9844684
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
ID: 9845771
PAQed, with points refunded (125)

Lunchy
Friendly Neighbourhood Community Support Admin
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

828 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