mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #401] auth-file does not exist #307
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @gabrielrm on GitHub (Sep 18, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/401
Hi and congrats for your daughter!
I try using access control with
auth-file: "/var/lib/ntfy/user.db"inserver.ymlwhile fileuser.dbexists and is owned by the ntfy user and group, but still get the messageauth-file does not exist; please start the server at least once to create itwhen try to add user withntfy user add --role=admin someuser.Checked on a raspberry pi 3 (selfhosted server) and on pc with debian, installed both from repository.
Any advice?
Thank you.
@wunter8 commented on GitHub (Sep 28, 2022):
I think the issue is that when you run the command, it's running as your logged in user, not as the
ntfyuser, so the process doesn't have permission to readuser.dbTry this:
sudo -u ntfy ntfy user add --role=admin someuser@gabrielrm commented on GitHub (Sep 28, 2022):
Yes, that's it. No more error if command is run as user ntfy.
Thank you.