Borgbmatic errors out when system-wide configuration dir is not readable #350
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#350
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I am trying to create a backup :)
Steps to reproduce (if a bug)
Put any config into ~/.config/borgmatic/...
Actual behavior (if a bug)
Run as non-root user and get greated by:
Expected behavior (if a bug)
When run as normal user, borgmatic should skip non-readable folders. System wide configuration files are often for root, especially since the config file can contain sensitive data (especially the passphrase). So Fedora chose to package the configuration directory with restrictive permissions.
Other notes / implementation ideas
Either completly skip non-readable directories or issue a warning instead of a hard error
Environment
borgmatic version: 1.5.9
borgmatic installation method: Fedora
Borg version: 1.1.13
Python version: 3.8.5
operating system and version: Fedora 32
Totally agree that this looks like a bug! Ideally, borgmatic should never present an error to a user as a traceback. And your suggestion about skipping non-readable directories sounds reasonable to me. Thank you for bringing this to my attention.
This is fixed in master now! Non-readable configuration directories are silently skipped. This fix will be part of the next release. Thanks again!
Lovely, thank you for the quick fix -- now I no longer have to remove
/etc/borgmatic.d
after every fedora update :)Just released in borgmatic 1.5.10!