PDA

View Full Version : logging a user's commands



offbyone
5th August 2011, 01:24 AM
I am trying to track a user's commands. I tried psacct but when I run lastcomm it just shows the command name, not the options. Is there an easy way to log a particular user's commands?

thanks

pete_1967
5th August 2011, 01:35 AM
Well depending on what you need it for and how trustworthy are your users, you can just read their history file(s).

assen
5th August 2011, 09:56 PM
Hi,

... and if you don't trust them, then just make sure they cannot unset the history file :-) Hint: use an alias to "unset" that will not unset the HISTFILE.

WWell,