![]() |
| |||
| Hi ! I have a problem with a file permissions after logrotate. My logrotate configuration is like this: /etc/logrotate.conf ...... include /etc/logrotate.d .... in /etc/logrotate.d i have 3rd party sw configuration as well as mine which looks like this: /var/log/minefile.log { weekly missingok rotate 5 compress create 0640 root users postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` endscript } After being run from a cronjob, it gets group 'adm' and not 'users' as it is said in configuration. /etc/cron.daily/logrotate is #!/bin/sh test -x /usr/sbin/logrotate || exit 0 /usr/sbin/logrotate /etc/logrotate.conf Ok, now if i run /etc/cron.daily/logrotate manually OR /usr/sbin/logrotate -f /etc/logrotate.conf it is rotated, and owner is root:users but from the cronjob itself, it is somehow wrong. Any idea ? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |