[xubuntu-users] Detecting login name after su

Peter Flynn peter at silmaril.ie
Thu Oct 3 22:57:30 UTC 2013


On 10/03/2013 08:58 PM, Lutz Andersohn wrote:
> I think the users command always prints the original user. I logged on as some 
> user, did a sudo -i, called users again and it gave me my original user name. 
> also works with sudo su -

Indeed it does, thanks. But with potentially many users logged in, how
do I detect which one is the account I "came from"?

///Peter





More information about the xubuntu-users mailing list