this post was submitted on 05 Feb 2025
10 points (100.0% liked)
Linux Questions
1591 readers
7 users here now
Linux questions Rules (in addition of the Lemmy.zip rules)
- stay on topic
- be nice (no name calling)
- do not post long blocks of text such as logs
- do not delete your posts
- only post questions (no information posts)
Tips for giving and receiving help
- be as clear and specific
- say thank you if a solution works
- verify your solutions before posting them as facts.
Any rule violations will result in disciplinary actions
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
As I said, this is a system service
This seems to be a systemd feature, system services can't touch home directories by default.
https://unix.stackexchange.com/a/684074
I think a user script would still work. Or you could set the flag that would let system services access your home.
I would try
ProtectHome=read-only
but then restic wouldn't be able to write its local cache to~/.restic
.I went for a user service first to make my life easier, but unfortunately you can't use targets
poweroff.target
andhalt.target
I may be in a bind then...