Bug 4288

Summary: ftp gives "ftp: ftp/tcp: unknown service" for regular user
Product: [Retired] Red Hat Linux Reporter: Bertil Askelid <bertil>
Component: ftpAssignee: David Lawrence <dkl>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-01 09:02:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bertil Askelid 1999-07-31 17:50:38 UTC
/usr/bin/ftp has to installed with suid bit set:

	chmod 4755 /usr/bin/ftp

Same error occures for telnet and fwhois.

Comment 1 Bertil Askelid 1999-07-31 18:53:59 UTC
My suggested solution is no good. Means that ftp:ed files are owned
by root. Thus, there must be something in the tcp that prevents ftp,
telnet and fwhois to be used by a regular user. But what?

Comment 2 Bertil Askelid 1999-07-31 19:31:59 UTC
Problem solved: /etc/services comes with rw------- on the 6.0 CD.
Should be rw-r--r--.

Comment 3 Bill Nottingham 1999-07-31 21:46:59 UTC
No, it comes with the correct 644 permissions (just checked here.)
Perhaps something else changed them on your system. Did you install
the samba upgrade with a non-default root umask?

Comment 4 Jeff Johnson 1999-07-31 23:03:59 UTC
No, don't put a setuid on the program, check the permissions
on /etc/services. I believe that a recent update (samba?)
changes the permissions to 600 on /etc/servcies. Can you confirm
whether:
   1) you recently installed the samba update.
   2) the permissions are 600 on /etc/services
so I can get this problem fixed? Thanks ...

Comment 5 Jeff Johnson 1999-08-01 09:02:59 UTC
This problem appears to be resolved.