Comments on: How to Monitor Linux Users Activity with psacct or acct Tools https://www.tecmint.com/monitor-linux-user-activity-psacct-acct/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 07:00:30 +0000 hourly 1 By: Aasifa https://www.tecmint.com/monitor-linux-user-activity-psacct-acct/comment-page-1/#comment-1350049 Tue, 04 Aug 2020 12:32:34 +0000 http://www.tecmint.com/?p=2249#comment-1350049 In reply to Ashish.

Hi,

When I executed lastcomm sdiff command, I could output is popping multiple times instead of a single display, please help me on this?

[root@qns01 ~]# lastcomm sdiff
sdiff                   root     pts/0      0.00 secs Mon Aug  3 07:52
sdiff                   root     pts/0      0.00 secs Mon Aug  3 07:52
sdiff                   root     pts/0      0.00 secs Mon Aug  3 07:52
sdiff                   root     pts/0      0.00 secs Mon Aug  3 07:52
sdiff                   root     pts/0      0.00 secs Mon Aug  3 07:52
]]>
By: Ashish https://www.tecmint.com/monitor-linux-user-activity-psacct-acct/comment-page-1/#comment-1036473 Mon, 17 Sep 2018 07:36:05 +0000 http://www.tecmint.com/?p=2249#comment-1036473 I am very new to linux administration.

To audit user activity, I installed and used psacct with the following command:

# lastcomm root

but I do not get any mention for the command “history” that I ran to test. Is there something I am doing wrong?

]]>
By: sush https://www.tecmint.com/monitor-linux-user-activity-psacct-acct/comment-page-1/#comment-901935 Wed, 26 Jul 2017 12:26:52 +0000 http://www.tecmint.com/?p=2249#comment-901935 In reply to sush.

Hi,

I think you didn’t got my question. Can I repeat?

]]>
By: sush https://www.tecmint.com/monitor-linux-user-activity-psacct-acct/comment-page-1/#comment-901492 Mon, 24 Jul 2017 07:35:04 +0000 http://www.tecmint.com/?p=2249#comment-901492 In reply to Ravi Saive.

Hello Ravi,

Thanks for your reply. but here we have only 2 users first login into admin after switch user to root. All our operations team members are working in root administrator account. So in that case I want to found in root only which member have executed the commands in root bash_history.

]]>
By: Ravi Saive https://www.tecmint.com/monitor-linux-user-activity-psacct-acct/comment-page-1/#comment-901482 Mon, 24 Jul 2017 06:31:01 +0000 http://www.tecmint.com/?p=2249#comment-901482 In reply to sush.

@Sush,

You can find all users commands history under /home/user_name/.bash_history file, you can use find or grep command to list the history of all users..

]]>