From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 15:20:35 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 555A5106566B for ; Sun, 4 Dec 2011 15:20:35 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [IPv6:2a02:6b8:0:602::5]) by mx1.freebsd.org (Postfix) with ESMTP id C37C98FC13 for ; Sun, 4 Dec 2011 15:20:34 +0000 (UTC) Received: from smtp2.mail.yandex.net (smtp2.mail.yandex.net [77.88.46.102]) by forward5.mail.yandex.net (Yandex) with ESMTP id 3F7B112010D1; Sun, 4 Dec 2011 19:20:33 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1323012033; bh=FeYPqaCEomhh8vbHIM8QpcR2rVHq6IYR9SH+8mSQImI=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IvhTmLfozyGYGozy0TYR8mhcjxf7Bf9H3QNls8W//aGtud4hMFJJeH1rvnfwD6obA cJT1ltGDTyu0hipFoXXFGXInIQnioGTPzSFxNnwxHT+cc4hVjhvji6QPdiu19GbGyl Vwn6fMO3UJYWHLjg/0SZcxxinGiBHVtESeleJeJU= Received: from smtp2.mail.yandex.net (localhost [127.0.0.1]) by smtp2.mail.yandex.net (Yandex) with ESMTP id 15D72E20341; Sun, 4 Dec 2011 19:20:33 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1323012033; bh=FeYPqaCEomhh8vbHIM8QpcR2rVHq6IYR9SH+8mSQImI=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IvhTmLfozyGYGozy0TYR8mhcjxf7Bf9H3QNls8W//aGtud4hMFJJeH1rvnfwD6obA cJT1ltGDTyu0hipFoXXFGXInIQnioGTPzSFxNnwxHT+cc4hVjhvji6QPdiu19GbGyl Vwn6fMO3UJYWHLjg/0SZcxxinGiBHVtESeleJeJU= Received: from unknown (unknown [176.8.25.138]) by smtp2.mail.yandex.net (nwsmtp/Yandex) with ESMTP id KWwCJO0i-KWwmLNJb; Sun, 4 Dec 2011 19:20:32 +0400 X-Yandex-Spam: 1 Date: Sun, 4 Dec 2011 17:20:29 +0200 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1234153491.20111204172029@yandex.ru> To: Polytropon In-Reply-To: <20111204144145.98dc9726.freebsd@edvax.de> References: <353504866.20111204053419@yandex.ru> <20111204144145.98dc9726.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: FreeBSD Mailing List Subject: Re[2]: sudo log messages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 15:20:35 -0000 Здравствуйте, Polytropon. Вы писали 4 декабря 2011 г., 15:41:45: P> On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote: >> Tell me please how to stop sudo to food /var/log/messages? P> ADDITION: Of course I meant /usr/local/etc/sutoers, P> NOT sudo.conf. P> Instead of logging via syslog (to /var/log/messages), P> why not use a specific log file for sudo? Add those P> lines to the sudoers file: P> Defaults logfile=/var/log/sudo.log P> Defaults !syslog P> Make sure /var/log/sudo.log exists, and maybe use P> newsyslog.conf to deal with log rotation and archiving. P> However, you can easily purge sudo log information P> this way, if required. P> The file /usr/local/share/doc/sudo/sample.sudoers P> contains an example. yes, that is not problem, but I want to control logging in one place not in each config file of service I have ran on machine. I have thought that this !sudo *.* /var/log/sudo.log will take off logging in /var/log/messages but this work as log to /var/log/messages and to /var/log/sudo.log =(( -- С уважением, Коньков mailto:kes-kes@yandex.ru