Skip to main content
Topic: [Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable (Read 462 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable

The logrotate cron script, part of the logrotate package, is missing executable permissions, so doesn't work in the current package version. It should be 0744 I think. It can be manually fixed like this:
Code: [Select]
# chmod u+x /etc/cron.daily/logrotate
I just noticed my logs were getting very large (it was updated to this version in November...  ;D )

Re: [Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable

Reply #1
for me works normally with 100644

you are right

Re: [Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable

Reply #2
I have cronie and cronie-openrc installed, there are other cron packages, perhaps they are different.
Code: [Select]
-rw-r--r-- 1 root root       3774 Mar  5 14:35 rc.log
-rw-r--r-- 1 root root      35717 Mar  5 01:11 rc.log.1.gz
-rw-r--r-- 1 root root       2512 Nov 17 01:18 rc.log.2.gz
-rw-r--r-- 1 root root       2982 Nov 10 11:44 rc.log.3.gz
-rw-r--r-- 1 root root       3470 Nov  3 01:11 rc.log.4.gz
-rw-r----- 1 root root     124930 Mar  5 14:36 syslog
-rw-r----- 1 root root   61514958 Mar  5 01:11 syslog.1
-rw-r----- 1 root root      65324 Nov 18 03:23 syslog.2.gz
-rw-r----- 1 root root      44875 Nov 17 03:14 syslog.3.gz
-rw-r----- 1 root root      66131 Nov 16 14:41 syslog.4.gz

Code: [Select]
/etc/cron.hourly$ ls -l
total 12
-rwxr-xr-x 1 root root 580 Nov  1 10:52 0anacron
-rw-r--r-- 1 root root  61 Mar  5 15:43 execno
-rwxr--r-- 1 root root  54 Mar  5 15:42 execyes
$ cat exec*
#!/bin/sh
logger "cron hourly permissions - not executable"
#!/bin/sh
logger "cron hourly with exec permissions"
Testing this here, only the one with executable permissions (execyes) is writing to syslog on the hour.

Re: [Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable

Reply #3
In current package this file is not executable.

I'm using "cronie" as task scheduler, version 1.5.5-1. In previous versions of cronie, file logrotate could be executed even if it hasn't execution bit. But new versions are stricter and files can only be executed if them have execution permission.

I can set permission manually, but it's better in the package.

Re: [Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable

Reply #4
we will check that and fix it.


Re: [Package logrotate-3.16.0-1] File /etc/cron.daily/logrotate should be executable

Reply #6
thank you for report!