On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote:
> Tell me please how to stop sudo to food /var/log/messages?

ADDITION: Of course I meant /usr/local/etc/sutoers,
NOT sudo.conf.

Instead of logging via syslog (to /var/log/messages),
why not use a specific log file for sudo? Add those
lines to the sudoers file:

        Defaults logfile=/var/log/sudo.log
        Defaults !syslog

Make sure /var/log/sudo.log exists, and maybe use
newsyslog.conf to deal with log rotation and archiving.
However, you can easily purge sudo log information
this way, if required.

The file /usr/local/share/doc/sudo/sample.sudoers
contains an example.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to