1753290 Members
5223 Online
108792 Solutions
New Discussion юеВ

Re: user activity

 
SOLVED
Go to solution
Ron Irving
Trusted Contributor

user activity

Hello guru's!

My question may in fact be a simple one:

Is there a way to track users by login? Meaning, (especially root,) how do I generate some sort of user audit report/trail.

Thank you for reading my words!!
Should have been an astronaut.
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: user activity

>>Is there a way to track users by login?

Track how? What information do you want?

The 'last' command will show you login/logout information for users. If you do 'last root' it will show the information for the root user.

>>Meaning, (especially root,) how do I
>>generate some sort of user audit
>>report/trail.

What kind of report? Do you want a log of all commands run?
Jannik
Honored Contributor

Re: user activity

Logins
------
last

Failed Logins
-------------
lastb

Audit trail
-----------
tail -f /homedir/.sh_history

You could force your root users to use sudo. Sudo monitor all activities.
jaton
Ron Irving
Trusted Contributor

Re: user activity

I think I found it!!

sulog

Thank you for your prompt reply though.
Should have been an astronaut.
Ron Irving
Trusted Contributor

Re: user activity

I used the 'last' command, and the /var/adm/sulog command.

Thank you!!
Should have been an astronaut.