Re: Seeing who has su-ed
From: Andy Walden (andy@tigerteam.net)
Date: 03/21/03
- Previous message: Alvin Oga: "Re: Seeing who has su-ed"
- In reply to: Klotz, Brian: "Seeing who has su-ed"
- Next in thread: Andreas: "Re: Seeing who has su-ed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 21 Mar 2003 11:50:05 -0600 (CST) From: Andy Walden <andy@tigerteam.net> To: "Klotz, Brian" <Brian_Klotz@heald.edu>
On Thu, 20 Mar 2003, Klotz, Brian wrote:
>
> I teach a Linux basics course and each term I have the problem of students
> who do an su to become root, then rather than exiting, they su again to go
> back to their regular account. The trouble is identifying when someone has
> done this (they usually don't remember). The "who" command only shows login
> shells (AFAIK) so it does not reveal when someone has su-ed.
>
> Does anyone know of a way to list all of the users currently logged in,
> including when someone has su-ed to become another user?
Off the top of my head:
pstree -aup|grep sh|grep -B 1 root
andy
-- PGP Key Available at http://www.tigerteam.net/andy/pgp
- Previous message: Alvin Oga: "Re: Seeing who has su-ed"
- In reply to: Klotz, Brian: "Seeing who has su-ed"
- Next in thread: Andreas: "Re: Seeing who has su-ed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|