Re: Strange behavior observed w.r.t 'su' command

From: Raj
Date: Fri Nov 28 2003 - 06:19:46 EST


Andreas Schwab wrote:

mru@xxxxxx (Måns Rullgård) writes:



It appears that my su exec()s the shell, whereas the redhat and gentoo
su fork() and exec().



Yes, your su probably does not support PAM.

Andreas.



But why is it that after 'su - root', running 'ps' shows 'su' as a separate process, whereas, 'su - otheruser' and then 'ps' does not show 'su' in the process list ??
In plain words, why does this happen only for su to root ?

/Raj


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/