Etckeeper continuously resets the file permission for /etc/.etckeeper
back to 0700
. For backup reasons I need it to be group-readable at least, i.e. 0740
. Every time etckeeper resets the file permissions, my nightly backup breaks.
How do I keep etckeeper from resetting the file permissions?
You can edit /etc/etckeeper/pre-commit.d/30store-metadata and find in that file where it has
chmod 700
. Do note the comment about why it uses that permission.It seems to me that any backup software that is operating on /etc needs to be able to read /etc/shadow, and only root and group shadow can. So unless your backup program is running as group shadow with some other user, I wonder how it can make sense to need to do this.