[Novalug] Tell the user that su'd

Jon LaBadie novalugml@jgcomp.com
Tue Jan 14 14:01:59 EST 2014


On Tue, Jan 14, 2014 at 10:13:41AM -0500, shawn wilson wrote:
> How do I tell the original user that su'd? I was thinking I could
> export a variable or climb the process tree, but was wondering if
> there was some built-in for doing this?

  $ su

  # whoami
  root

  # who am i
  jon      pts/2        2014-01-14 13:52 (cyber)

  # exit

  $ whoami
  jon
 
--
Jon H. LaBadie                  novalugml@jgcomp.com
 11226 South Shore Rd		(703) 787-0688 (H)
 Reston, VA  20190		(609) 477-8330 (C)



More information about the Novalug mailing list