log execution of certain commands on linux

Posted by jlsksr on Super User See other posts from Super User or by jlsksr
Published on 2013-06-29T15:26:23Z Indexed on 2013/06/30 16:23 UTC
Read the original article Hit count: 229

Filed under:
|
|
|
|

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/

© Super User or respective owner

Related posts about linux

Related posts about bash