Toushirou: /etc/logrotate.d/ddns is ignored by logrotate
/etc/logrotate.d/ddns is ignored by logrotate:
Ignoring ddns because the file owner is wrong (should be root).
#2 Updated by Marc Dequènes almost 2 years ago
- Status changed from New to In Progress
We cannot move it, it's a dev git repo and this would just end-up removing it from the provided config examples by mistake. A symlink was used to ensure it keeps in sync.
Could the file's ownership be root:dc-admins or does it have to be root:root? (it seems the code allows it) We could also use POSIX ACLs.
Also I wonder if for collaborative purpose the selected solution should not be applied to the whole /opt directory.
#3 Updated by Pierre-Louis Bonicoli almost 2 years ago
conf/logrotate.d/ddns is not part of the git repository, the whole
conf directory is ignored.
gid isn't checked, hence ownership for this file could be
root:dc-admins. Using this ownership for the whole
/opt/ddns tree is a good idea.
It would be better it a dedicated was used for the passenger process.
#5 Updated by Pierre-Louis Bonicoli almost 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
File was moved using:
# rm /etc/logrotate.d/ddns && mv /opt/ddns/conf/logrotate.d/ddns /etc/logrotate.d/ddns # chown root:root /etc/logrotate.d/ddns # rm -r /opt/ddns/conf/logrotate.d/