log execution of certain commands on linux
- by jlsksr
I have to maintain a system (debian) on which several users are allowed to install programs - so I would like to log, for example, if anyone executes "apt-get install" or "apt-get purge", so I can keep track of manually installed packages..
I'm looking for a general way to achieve this; it's not just APT, but several programs/scripts etc.
Any ideas?
/edit
a google-search with few different keywords brought up this:
http://serverfault.com/questions/201221/how-to-log-every-linux-command-to-a-logserver
http://stackoverflow.com/questions/15698590/how-to-capture-all-the-commands-typed-in-unix-linux-by-any-user
http://sourceforge.net/projects/rootsh/