Bug 7417

Summary: No information re: hostname and user associated with stdin
Product: [Retired] Red Hat Linux Reporter: Scott Gibson <wsgibson>
Component: sh-utilsAssignee: bero
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: wsgibson
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: 2000-02-04 15:19:34 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 Scott Gibson 1999-11-29 20:45:29 UTC
I am not totally sure if this is a "who" problem but the symptom is shown
via the who command.

When running "/usr/bin/who -ml" I no longer get the user and hostname
associated with stdin when running locally (under X).  This will only work
if I am running gdm and GNOME.  This problem will occur whether "who" is
run from gnome-terminal, xterm, or rxvt.  This has worked up through RH
Linux 6.0.  I get similar results using XFce and KDE.

Comment 1 Elliot Lee 2000-02-04 15:18:59 UTC
The basic problem is that 'who' has the -m option at all. utmp entries are for
login sessions, not shell prompts, so there is no direct correlation between a
particular pty and a particular session. The -m option mostly remains for
historical reasons - in the "old days", they didn't have to worry about things
such as logins via gdm etc. :)

Comment 2 Elliot Lee 2000-02-04 15:19:59 UTC
The basic problem is that 'who' has the -m option at all. utmp entries are for
login sessions, not shell prompts, so there is no direct correlation between a
particular pty and a particular session. The -m option mostly remains for
historical reasons - in the "old days", they didn't have to worry about things
such as logins via gdm etc. :)