Hi All
Kindly, I need to monitor Linux for 2 actions (to be saved in a log file every minute)
-1- who logged in (PC name) and when (date and time)
-2- what are the commands he execute (who execute, the command, and when)
considering the following:
- some users may change history size to 0 before they execute the command
- (last, w or who) statement may show the IP address only, also user may clean the entries from default log
I was trying to build shell to copy (history and w) commands outputs to file every minute, then to clean history, but it does not work
hope if you have ready script
Thanks ...