[Pkg-shadow-devel] su vs. utmp
Justin Pryzby
jpryzby at quoininc.com
Thu Sep 6 19:28:06 UTC 2007
On Fri, Sep 07, 2007 at 01:56:33AM +0800, jidanni at jidanni.org wrote:
> Interesting. On tty1 I "su -" from jidanni to root, and on tty2 from
> root to jidanni,
> $ pstree -au
> |-login --
> | `-bash
> | `-su,jidanni - jidanni
> | `-bash
> |-login --
> | `-bash,jidanni
> | `-su,root -
> | `-bash
> | `-pstree -ua
> But who(1), w(1) don't divulge any of that. OK, no big deal.
Aren't you wondering why the su process is still running instead of
exec bash as EUID 0? It's because it wants to do pam_end() or such.
Justin
More information about the Pkg-shadow-devel
mailing list