How to make History command to record the userid, timestamp, ip address and command
We have a server being visited all the time. I want to record the userid, ip address and commands bei开发者_StackOverflow中文版ng executed. Please kindly tell me how to do it? Thanks!
I think you're really looking for auditing. A few quick pointers:
- For Linux
- For FreeBSD
Basically, these frameworks can be configured to log every command executed, including the arguments given, etc.
精彩评论