Logging Linux Commands for all users

To log commands executed by users on Linux shell, edit file

Add

Create file

Add

Restart rsyslog

Now log off and login, you will be able to see all commends executed by users on bash shell in file /var/log/commands.log

Log rotating

edit

Find

Add below

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *