Hi everyone!
I would like to get a command or prepare a script that gets user's commands on an AIX server. I have tried the lastcomm <UserID> command, but it does not show the parameters.
=>For example, if a user called John removes a file:
rm test.sh
=>And after, I want to know what he has typed:
lastcomm John
=>The result is showed as follows:
rm John
pts/2
0.02 secs Wed Feb 07 14:49
=>But, I would like to get an auditlog containing parameters too. So, it would be showed:
rm test.sh John
pts/2
0.02 secs Wed Feb 07 14:49
Could anyone give me a suggestion concerning this, please?!
I appreciate your attention!
Thanks and Regards,
Wiltonor
I would like to get a command or prepare a script that gets user's commands on an AIX server. I have tried the lastcomm <UserID> command, but it does not show the parameters.
=>For example, if a user called John removes a file:
rm test.sh
=>And after, I want to know what he has typed:
lastcomm John
=>The result is showed as follows:
rm John
pts/2
0.02 secs Wed Feb 07 14:49
=>But, I would like to get an auditlog containing parameters too. So, it would be showed:
rm test.sh John
pts/2
0.02 secs Wed Feb 07 14:49
Could anyone give me a suggestion concerning this, please?!
I appreciate your attention!
Thanks and Regards,
Wiltonor