Bug 63706 - rsh, rcp and rlogin are not usable in %pre install script
Summary: rsh, rcp and rlogin are not usable in %pre install script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rsh
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-17 17:32 UTC by Philip Pokorny
Modified: 2015-03-05 01:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-06-25 13:19:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Philip Pokorny 2002-04-17 17:32:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:0.9.2.1) Gecko/20010901

Description of problem:
The rsh, rcp, and rlogin commands are included in the stage2 filesystem for use
during install.  However, they are the standard "OS" versions and use
getservbyname to get the TCP socket to use.  This is a good thing, but there is
no /etc/services in stage2.img.  Thus the getservbyname call fails and all three
utilities print out something like:

   rlogin: login/tcp: unknown service
   rcp: shell/tcp: unknown service
rdate prior to version 1.2 had a similar problem and was patched for version 1.2
to fall back to the well known port number if getservbyname failed.

Please add similar fallback code to rsh, rcp and rlogin so they are usable
without a valid /etc/services or nsswitch configuration.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Boot the installer
2. Select NFS or CDROM install
3. At the shell prompt on console 2
4. Try:  rcp 10.1.1.1:/install/customize/file /tmp/file

Actual Results:  
rcp: shell/tcp: unknown service

Expected Results:  File is copied to /tmp/file

Additional info:

I can't find any bugzilla entry for the patches that were made to rdate, but the
same fix has already been made for rdate-1.2.

It could be argued that /etc/services should be added to stage2.img, but stage2
is not mounted on / and so /etc/services is not easily available for fixing in
this way.

Comment 1 Jim Wright 2002-10-26 04:24:51 UTC
I just confirmed that this is fixed in rh80 (as well as the rdate issue in
#63707).  ok to close.

Comment 2 Phil Knirsch 2003-06-25 13:19:27 UTC
Closing for current release.

Read ya, Phil


Note You need to log in before you can comment on or make changes to this bug.