P
P
pashaxp2014-05-29 18:00:26
linux
pashaxp, 2014-05-29 18:00:26

How to make logging of all commands of all users of the server?

There is, for example, such a solution
blog.kxr.me/2012/01/logging-shell-commands-in-linu...
It is bad because it needs to be configured for each user.
Maybe someone will tell you - what utility can be used so that you can transparently create a new user and his commands immediately fall into the general command log?
I imagine this as a replacement for the "correctly compiled bash binary ", for example, where the logging functionality will be introduced, and no bashrc needed to be configured ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2014-05-29
@pashaxp

Look at the snoopy utility, which intercepts all execve() calls.
Installing on debian is very simple:
apt-get install snoopy
logging will be in /var/log/auth.log
No additional steps are required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question