6 Oct 2010 00:27
Log rotation ownership change
John Elliot <johnelliot67 <at> hotmail.com>
2010-10-05 22:27:30 GMT
2010-10-05 22:27:30 GMT
Hi,
One of our qmail boxes lost power recently, and ever since then when smtpd logs are rotated the ownership is changed to root:adm and a "previous" file is also created
-rw-r----- 1 root adm 9.6M Oct 6 06:27 current.0
-rw-r----- 1 root adm 0 Oct 6 06:26 previous
smtpd stops, and we see the following error:
root 1602 0.0 0.0 1336 212 ? S Sep06 0:00 readproctitle service errors: ...?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?
chowning the files back to qmaill:nofiles fixes the issue.
smtpd log run file:
/var/log/qmail/smtpd# cat /service/qmail-smtpd/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s10000000 n20 /var/log/qmail/smtpd
I've tried changing the size parameter to different values to see if it was some other process changing the ownership, but each time the log hits the conf'd size, the root:adm issue happens.
Any suggestions are greatly appreciated.
One of our qmail boxes lost power recently, and ever since then when smtpd logs are rotated the ownership is changed to root:adm and a "previous" file is also created
-rw-r----- 1 root adm 9.6M Oct 6 06:27 current.0
-rw-r----- 1 root adm 0 Oct 6 06:26 previous
smtpd stops, and we see the following error:
root 1602 0.0 0.0 1336 212 ? S Sep06 0:00 readproctitle service errors: ...?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?multilog: warning: unable to set mode of /var/log/qmail/smtpd/previous, pausing: permission denied?
chowning the files back to qmaill:nofiles fixes the issue.
smtpd log run file:
/var/log/qmail/smtpd# cat /service/qmail-smtpd/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s10000000 n20 /var/log/qmail/smtpd
I've tried changing the size parameter to different values to see if it was some other process changing the ownership, but each time the log hits the conf'd size, the root:adm issue happens.
Any suggestions are greatly appreciated.
RSS Feed