1827707 Members
2630 Online
109967 Solutions
New Discussion

Re: monitor logins

 
SOLVED
Go to solution
abunnudur
Advisor

monitor logins

Hi dears,
i have a small question...
I create a user called USER in sudo with full access to do anything like a root...
now from administrator side;how to know the time login for that user and if it is possible to know what commands he runs?
Regards,
9 REPLIES 9
SKR_1
Trusted Contributor

Re: monitor logins

You can find doing su - root by this user in /var/adm/syslog/syslog.log. You can check the history file of the perticular user.

Thanks

SKR
Prashanth Waugh
Esteemed Contributor

Re: monitor logins

Hi Dear,

Check for su log
# cat /var/adm/sulog |more

Regards
Atul
For success, attitude is equally as important as ability
abunnudur
Advisor

Re: monitor logins

Dear Atulkumar,
i used ur command and it gave me a long output...what i have to do if i want to know the login for the last 7 days ?
Regards,
Rasheed Tamton
Honored Contributor

Re: monitor logins

Hi,

You can have the detail info. reg the sudo log on the below thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1059102

Regards.
abunnudur
Advisor

Re: monitor logins

Dear Rasheed,
Your link is not working
Regards,
Rasheed Tamton
Honored Contributor
Solution

Re: monitor logins

grep username /var/adm/sulog|tail -20

Just try with the tail command, and if there are more screens, then combine it with more

grep oracle /var/adm/sulog|tail -100|more

Rasheed Tamton
Honored Contributor

Re: monitor logins

It will. Just try again. ITRC is always very busy also it is very slow and often gives these kind of errors, at least in this region (SA).

Or just put it in the google search and see the cache.

regards.
V. Nyga
Honored Contributor

Re: monitor logins

Hi,

a login in CDE you'll see with 'last - check more options in the man-pages with 'man last'.

To see the complete history it's maybe required to extend the stored commands with the shell parameter 'HISTSIZE' (for sh-shell).

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Prashanth Waugh
Esteemed Contributor

Re: monitor logins

Hi,

U can check by using
cat /var/adm/sulog |grep 08/25
here I used todays date for sulog.

Regards
Atul

For success, attitude is equally as important as ability