Actions
Bug #4445
closedWrong permissions slapd.log after logrotate
Bug #4445:
Wrong permissions slapd.log after logrotate
Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
System techniques
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
The slapd.log file has the wrong permissions after a logrotate.
# ls -al /var/log/rudder/ldap/ total 232 drwxr-xr-x 2 root root 4096 Feb 6 06:28 . drwxr-xr-x 8 root root 4096 Apr 25 2013 .. -rw-r----- 1 root adm 0 Feb 6 06:28 slapd.log -rw-r--r-- 1 syslog adm 224657 Feb 6 06:25 slapd.log.1
As you can see slapd.log is 0 size due to wrong permissions.
The logrotate sets the wrong permissions, because of this:
# head -36 /etc/logrotate.d/rudder | tail -16
/var/log/rudder/ldap/slapd.log {
...
create 640 root adm
...
}
Actions