You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is nu su, su_owner or su_group defined. Looking at the code, this will then default to 'root' and 'root'. It's not actually about the file that this creates, but the btmp and wtmp files.
What are you seeing
The logrotate module will alter /etc/logrotate.conf, and place new btmp and wtmp files. The btmp and wtmp files look like:
# cat btmp
# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE
# OVERWRITTEN.
/var/log/btmp {
compress
create 0600 root utmp
dateext
minsize 1M
missingok
monthly
rotate 1
sharedscripts
su root root
}
# cat wtmp
# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE
# OVERWRITTEN.
/var/log/wtmp {
compress
create 0664 root utmp
dateext
minsize 1M
monthly
nomissingok
rotate 1
sharedscripts
su root root
}
This is fine, except for the su directive, because CentOS-6's logrotate does not support the 'su' directive.
What behaviour did you expect instead
The files should not have the su directive.
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
logrotate-3.7.8-28.el6.x86_64
How to reproduce (e.g Puppet code you use)
There is nu su, su_owner or su_group defined. Looking at the code, this will then default to 'root' and 'root'. It's not actually about the file that this creates, but the btmp and wtmp files.
What are you seeing
The logrotate module will alter /etc/logrotate.conf, and place new btmp and wtmp files. The btmp and wtmp files look like:
This is fine, except for the su directive, because CentOS-6's logrotate does not support the 'su' directive.
What behaviour did you expect instead
The files should not have the su directive.
The text was updated successfully, but these errors were encountered: