Operating System - HP-UX
1855389 Members
2571 Online
104110 Solutions
New Discussion

How can I know who has been login..

 
SOLVED
Go to solution
mw_4
Frequent Advisor

How can I know who has been login..

I know last command display login date but How can I notice who has been login with IP?
Any help will be fine
Step by step
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor
Solution

Re: How can I know who has been login..

Hi,

Use the -R option.

# last -R

Hope this helps. Regards.

Steven Sim Kok Leong
mw_4
Frequent Advisor

Re: How can I know who has been login..

thanks your help^^
Step by step
Michael Tully
Honored Contributor

Re: How can I know who has been login..

Hi,

If your system uses DNS the output will report via the DNS name and not the IP address.

# who -u
# who -T
# who -R

Please note that if a user has logged in to server A first then logged into server B from the same session, the output will show as coming from server A, not the users PC IP address.

HTH
~Michael~
Anyone for a Mutiny ?
Jan-Erik Sanne
Advisor

Re: How can I know who has been login..

Hi,

I bit off the track, but be aware of /var/adm/sulog to see who have done a su (especially to root).

- janerik
Life is not life unless you make mistakes