Record all users' command

Hi experts,

.history can record one user's own command history, but my request is,

I want to record all users who run commands on that box, and export the commands to a file somewhere, which record the userid, time and full command.

Is it possible? I just need for audit, and trace back, if there are any issues on my server

What system are you using?

Hi,
check this out.
How to keep a detailed audit trail of what�s being done on your Linux systems

Find Out Which Commands Were Run on My Linux Server

Regards,
Mayur

1 Like

My system is Solaris 10