[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug or missing feature in who
From: |
Andreas Schwab |
Subject: |
Re: Bug or missing feature in who |
Date: |
Fri, 25 May 2007 11:54:19 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) |
address@hidden (Bob Proulx) writes:
> Alexander Schestag wrote:
>> So, is there a way to tell "who" to list the users logged in via su
>> as well?
>
> Not with who. AFAIK you would need to walk the process list for that
> information. There is really nothing special about a login process.
> It is just a normal process.
Actually a login process is kind of special, because it creates a new
session and becomes the leader of it. Changing the user with su, on the
other hand, does not create a new session (use ps -ej to display the
session id of every process). Still, it is the sole responsibility of
the process creating the session to update the utmp/wtmp information.
In other words, you cannot trust this information in any way.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."