Linux.com

Home Linux Community Forums Software Command Line not whoami, but whowasi?

not whoami, but whowasi?

Link to this post 04 Aug 11

For me running Fedora 15, having su'd to root, "whoami" tells me that I am root. If you type "w" it will report who is logged in, so if it's just you and root logged in you can deduce who you were from that.

Otherwise try "logname", even when su'd it reports my user account not the superuser.

sudo su is something I have only ever done on an Ubuntu system to change the root account password.

Link to this post 05 Aug 11

What you are looking for is a simple Auth.* event .
Every Distro match the pattern in a significant log file .

Look for auth.log or secure /var/log . Or simply "grep" this pattern "COMMAND=/bin/su" in any file in var/log , to inspect where it's logged.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board