-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
acme-dns needs directory permissions in systemd (documentation) #88
Comments
Thanks for bringing this up! I'll investigate a bit, but it looks like we should make slight modifications to the documentation. Pinging @gabe565 as they contributed the systemd service file and docs. |
I honestly forgot that this is configurable. In my setup, I have the |
after some testing * checking the sqlite docs regarding locks, the issue is definitely due to the acme-dns user needing write permissions for the directory which the database file is in. |
Yes that's what it looks like, which is why I would rather keep the database in |
yeah that seems like the right approach. if you wanted to overcomplicate things, have you considered playing the config file in there? then a user could just be added to the acme-dns group for edit privileges. |
Yeah, you don't want to put databases in |
I updated my install to control acme-dns via systemd, with an acme-dns user.
I changed the ownership of items in
/etc/acme-dns
toacme-dns
.If the
/etc/acme-dns
directory is owned byroot
, there are errors in accessing the existing database/etc/acme-dns/acme-dns.db
. If the directory is owned byacme-dns
, the db is read fine.Stated differently,
I'm not sure how/why this is happing, but I think it is due to sqlite not being able to make lock files.
The text was updated successfully, but these errors were encountered: