how can I know which user has logged in?
What command is used to know which users are currently logged in the server?
I ran w command but it doesnt hint for the same? I ran lsof command to know open operations but still clueless in understanding the o/p. |
"who" or "w" or "finger" should have told you the same. What is that you get when you try those commands?
|
Along with those already suggested the "last" command may be of use.
|
Also, knowing how they login would help too. If they are accessing files using Samba for example, then smbstatus would show you that information.
I can recommend the last command though: last | grep "still logged in" Will show you who is currently logged in but it also shows you which terminal windows you have open, and if you're su'd to root etc. |
your_shadow03:
Above query commands provide plenty of information. But if you want a simple print of who are currently logged in just type $ users <Enter> hope this helps. |
All times are GMT -5. The time now is 07:52 PM. |