[sudo-users] configure to avoid logging?

Michael Potter pottmi at gmail.com
Thu Aug 17 19:27:51 EDT 2006


Here is a question that i asked with the same goal in mind:

> The specification for Defaults is like this:
>    Default_Type ::= 'Defaults' |
>                         'Defaults' '@' Host |
>                         'Defaults' ':' User |
>                         'Defaults' '>' RunasUser
> Cmnd is absent.
> Why?
> The reason I am asking is that I would like to turn off logging for
> commands.
> This seems like I should be able to do something like this:
> Defaults&Cmnd !syslog

I would be interested in trying to change sudo to support my proposed
syntax, but I would first like to hear from from someone with more
experience with the sudo source code as to why this feature is

It seems like an obvious feature so I suspect that there is some
non-trival problem with implementing it.

One solution would be for you to run that command as a different user
so you could use some thing like this:
defaults>newuser !logging,!syslog,!mailto

I would appreciate hearing your solution if you come up with one.

On 8/17/06, Bob Proulx <bob at proulx.com> wrote:
> I have been reading the docs but don't see a way.  But perhaps someone
> else knows.  Is there a way to configure sudo so that listed commands
> do not get logged?
> I have an application that I would tradtionally use a setuid program
> for but would rather use through sudo in this case.  But it is an
> automated process and runs frequently.  I wish to avoid the large
> quantity of logging in the syslog for this command that it generates.
> Is there a way to configure sudo to avoid it for this specific
> command?  Something like NOPASSWD currently but NOLOGGING in my case?
> Thanks
> Bob
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users

More information about the sudo-users mailing list