Re: sudo log messages
On Sun, 4 Dec 2011 05:34:19 +0200, Коньков Евгений wrote: hi I add line to syslog.conf and killall -HUP syslogd Tell me please how to stop sudo to food /var/log/messages? There is a short block for that functionality in the file /usr/local/etc/sudo.conf.sample which you can create your own sudo.conf file from. Also see the notes in man sudo, section SECURITY NOTES. Maybe you'll find something useful in the provided documentation at /usr/local/share/doc/sudo/. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sudo log messages
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, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re[2]: sudo log messages
Здравствуйте, 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-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sudo log messages
Коньков Евгений kes-...@yandex.ru writes: Здравствуйте, 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 =(( You are not clear about what you really want. If you want it to log to auth.log instead of messages, then you can use the following in your sudoers file: Defaults syslog=authpriv The sample file that was mentioned earlier is one source for information, but the best source is the sudoers(5) man page. Just search it for syslog and you will find several settings. -- Carl Johnsonca...@peak.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
sudo log messages
hi I add line to syslog.conf and killall -HUP syslogd Tell me please how to stop sudo to food /var/log/messages? -- С уважением, Коньков mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org