Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2004 13:52:44 GMT
From:      Mark <admin@asarian-host.net>
To:        "Sunil Sunder Raj" <unixtools@hotmail.com>, <webmaster@cyberdogtech.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 4.7 Syslogs
Message-ID:  <200405161352.I4GDQH1R074444@asarian-host.net>
References:  <BAY8-F23Ij3u0iK36Ix000227ae@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sunil Sunder Raj wrote:

> Hi,
> Just give 777 permissions to /var/log/messages

With all due respect, but that is rather bad advice. I have been running =
syslog on FreeBSD 4.7R for years, without problem; and never ever did I =
have to resort to making /var/log/messages world-writeable. Besides, =
that is totally unnecessary too: syslogd runs as root, so only root =
needs write permissions (and, since it is root, probably not even that).

You can run syslogd like this:

    /usr/sbin/syslogd -s

Or something like:

    /usr/sbin/syslogd -a 192.168.6.0/24

if you need to log from remote machines. Your /etc/syslog.conf should =
look something like this:

----------------------------
*.err;kern.debug;mail.crit                      /var/log/messages
*.notice;lpr.info;news.err                      /var/log/messages
security.*                                      /var/log/security
mail.info                                       /var/log/maillog
----------------------------

Cheers,

- Mark



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