Well i use SUSE11, Linux machine.
when logged to a Linux machine as root user,
sne-91:~ # pwd
/root
and then i log in to a particular user using "su - " cmd.
sne-91:~ # su - sunil
<1000 sne-91 [sunil] :/home/sunil>echo $USER
sunil
then "who" cmd does n't display "userName" and it shows "root" instead of "userName"
<1000 sne-91 [sunil] :/home/sunil>who
root pts/0 2014-09-18 11:56 (10.18.164.138)
Can anyone help in finding alternate cmd to find the users logged into particular machine..? Thanks