Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2011 14:41:45 +0100
From:      Polytropon <freebsd@edvax.de>
To:        =?UTF-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= <kes-kes@yandex.ru>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: sudo log messages
Message-ID:  <20111204144145.98dc9726.freebsd@edvax.de>
In-Reply-To: <353504866.20111204053419@yandex.ru>
References:  <353504866.20111204053419@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111204144145.98dc9726.freebsd>