From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 13:41:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5258106564A for ; Sun, 4 Dec 2011 13:41:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 98CAB8FC0C for ; Sun, 4 Dec 2011 13:41:47 +0000 (UTC) Received: from r56.edvax.de (port-92-195-77-74.dynamic.qsc.de [92.195.77.74]) by mx02.qsc.de (Postfix) with ESMTP id 6176C1E93D; Sun, 4 Dec 2011 14:41:46 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id pB4Dfju1002666; Sun, 4 Dec 2011 14:41:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 4 Dec 2011 14:41:45 +0100 From: Polytropon To: =?UTF-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= Message-Id: <20111204144145.98dc9726.freebsd@edvax.de> In-Reply-To: <353504866.20111204053419@yandex.ru> References: <353504866.20111204053419@yandex.ru> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: FreeBSD Mailing List Subject: Re: sudo log messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 13:41:47 -0000 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, ...