-1

Is there anyway that i can log all the commands that a certain user or user group has run in an ubuntu CLI. I need to keep a track of all the commands run by a certain group of users say

UsrGrp1:usr1,usr2,usr3

as i'm running a Cluster of machines and all are being controlled by different users. And i need to monitor those through the root user of every machine.

The history command gives me all the command logs. But it can be modified by the user itself. So i need to keep the logs under the root user only.

Milind Jindal
  • 176
  • 1
  • 7

1 Answers1

0

You can try logkeys a keylogger for linux. Another options could be script but with this you need to write a trigger to start it at each user login.

Alepac
  • 1,833
  • 13
  • 24