[sudo-users] excluding commands from log_output

Divan Santana divan at santanas.co.za
Sat Nov 12 16:16:16 MST 2016


Hi All,

Quick Q

I've enabled log_output but would like to prevent certain commands from
being logged, like top for example.

I think one can use the NOLOG_OUTPUT tag for this though I'm still
not sure of the syntax to get this to work.

Any example for setting multiple commands to be excluded would be great
:)

Lastly, would the above work in this scenario:
bob at host:$ sudo su - root
root at host:# top

Ie, when one invokes the top command sometime after sudo, during the
sudo "session".


More information about the sudo-users mailing list