I'm having some difficulty with logrotate v2.3 as included with
RedHat v4.2.
In particular, I can't seem to get the "create" command to honor my
request to create a new log with the permissions I want.
For example:
--------------------------------------------------------------------------- /usr/lib/news/local/gup/gup.log { When logrotate actually rotates this log file, it recreates the file User ownership and group ownership are done correctly however--it What's even more baffling is when I run logrotate with the debug --------------------------------------------------------------------------- reading config file /etc/logrotate.conf --------------------------------------------------------------------------- --
create 666 gup news
compress
daily
rotate 5
---------------------------------------------------------------------------
with permissions of 644 instead of 666 as requested.
just doesn't use the right permissions.
option (-d) it seems to indicate that it is parsing my configuration
file okay:
including /etc/logrotate.d
[...]
reading config file gup
reading config info for /usr/lib/news/local/gup/gup.log
[...]
rotating: /usr/lib/news/local/gup/gup.log after 1 days (5 rotations)
empty log files are rotated errors will be mailed to root old logs are
removed log needs rotating renaming /usr/lib/news/local/gup/gup.log.5.gz
to /usr/lib/news/local/gup/gup.log.6.gz renaming
/usr/lib/news/local/gup/gup.log.4.gz to
/usr/lib/news/local/gup/gup.log.5.gz renaming
/usr/lib/news/local/gup/gup.log.3.gz to
/usr/lib/news/local/gup/gup.log.4.gz renaming
/usr/lib/news/local/gup/gup.log.2.gz to
/usr/lib/news/local/gup/gup.log.3.gz renaming
/usr/lib/news/local/gup/gup.log.1.gz to
/usr/lib/news/local/gup/gup.log.2.gz
removing old log /usr/lib/news/local/gup/gup.log.6.gz
renaming /usr/lib/news/local/gup/gup.log to /usr/lib/news/local/gup/gup.log.1
creating new log mode = 0666 uid = 80 gid = 13
compressing new log with: gzip -9 /usr/lib/news/local/gup/gup.log.1
+------------------+-------------------------------+-----------------------
+------------------+-------------------------------+-----------------------
| In the future, we will put pointy things next to bumpy things. --D.Byrne |
+--------------------------------------------------------------------------