How to get all login users?
Hello,
I need to know if user test in login in. I created two ssh connections, and in the second one I executed: Code:
# su - test Code:
# who -u |
su - test is not test user login, it is root switching to test, but still root.
|
based on man su:
Code:
NAME Code:
NAME su - test will provide an environment, but actually will not log user in. When you execute tty you will see the current terminal and who will show you who was logged in on that terminal - in your case that was root. |
six ways to find out who is logged in on system
|
1 Attachment(s)
I've always used finger.
After looking at the link BW-userx suggested, I can see it's listed there if you want to read about it |
All times are GMT -5. The time now is 12:10 PM. |