Bug 55 - rsh problems with utmp
rsh problems with utmp
Product: Red Hat Linux
Classification: Retired
Component: rsh (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 1998-11-12 12:23 EST by cadams
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-03-26 10:35:26 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description cadams 1998-11-12 12:23:47 EST
If rsh doesn't enter a LOGIN entry in the utmp file, login
gets confused and adds a new entry at the end (even if an
entry for the tty already exists).  This causes the utmp
file to keep growing as long as the system is up.  A utmp
file over 1MB makes "who", "w", and other such programs slow
to a crawl on an active server.

I will send a patch for rsh that makes it create an entry
once I get a bug ID.
Comment 1 Derek Tattersall 1998-11-19 12:35:59 EST
See patch in attached email.
Comment 2 Jeff Johnson 1999-02-18 10:54:59 EST
This patch has been added to the OpenBSD rsh sources in Raw Hide.
This is an intermediate solution until a PAM module is written
that will manage utmp entries. Thanks for the patch.
Comment 3 Jeff Johnson 1999-03-26 10:35:59 EST
And, finally, a better fix (to find utmp entry based on tty slot)
has been put into login.c that makes it unnecessary to create the
utmp entry before exec'ing login. Thanks for pointing this out.

Fix is in util-linux-2.9o-6.

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