Identify all users logged in to the system even with su command
My requirement is to know all users who are active in the system.
But generally I login to my machine as root and then do "su" to my user.
"who" command will return all users logged in to the system, but not the user who is logged in with su command.
Please help me here, the best way to identify all users logged in to the system, who is even logged in with an su command.
Thanks in advance.