[classic-discuss] Syslog/logrotate

Jaakko Heinonen jh at tinysofa.org
Fri Jan 6 19:03:19 UTC 2006


[I got a confirmation from Mikkel that it was as I thought.]

Strictly taken it's not a bug but a documented behavior. However it's
indeed annoying.

Some possible fixes for the problem:

1) Patch syslogd to drop root privileges before file creation. The
   problem is that /var/log directory permissions must be changed to
   allow writing for syslog user. (One could also patch the syslogd to
   chown file before dropping the privileges. However this patch would
   become more complex.) Also maybe there are some other reasons
   why it was implemened this way originally.

2) Add a comment to default /etc/syslog.conf that states that the log
   files should be owned by syslog.

3) Run syslogd as root. Doesn't sound good.

-- 
Jaakko



More information about the Classic-discuss mailing list