LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Logs users actions (https://www.linuxquestions.org/questions/linux-security-4/logs-users-actions-296168/)

fargowiz 03-01-2005 03:18 AM

Logs users actions
 
hi all,

Is there any way to log whatevers users typed when they login?

Currently, when a user -su- to root, i cannot trace which users enter which commands.

Any solutions? Thanks!

mssanchu 03-01-2005 04:00 AM

hope this helps....
 
hi,
there is a file named .bash_histroy in each and every users directory, which has all the commands that users enter.. write cron job to monitor ( or grep ) the .bash_history file to check for "su" on all users... let me kow if it worked... btw the ur ques wasnt clear.. hope this helped...

oneandoneis2 03-01-2005 04:04 AM

You could create multiple root accounts and give each user their own root account.

But if you distrust the users with root access enough to want to monitor them, why have they got root access?


All times are GMT -5. The time now is 05:54 AM.