[xubuntu-users] Detecting login name after su

Peter Flynn peter at silmaril.ie
Thu Oct 3 19:14:49 UTC 2013


Does anyone know how a bash script can detect what username you
originally logged in with after you have become root?

That is, if I ssh into a machine, and sudo su -, I want a script to be
able to find out who I was before I became root.

///Peter




More information about the xubuntu-users mailing list