mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #344] ntfy user commands don't work if auth_file is used in config instead of auth-file #266
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#266
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 @Histalek on GitHub (Jun 24, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/344
Essentially what the title says.
Deployment / Version used
Reproduction
auth_filein server.yml e.g.auth_file: "/var/lib/ntfy/auth.db"podman exec -it ntfy /bin/shOnce I switch from
auth_filetoauth-filein the server.yml everything works. This contradicts the statement at the top of the server.yml@binwiederhier commented on GitHub (Jun 24, 2022):
Good catch. This is just an oversight. Fixed in
github.com/binwiederhier/ntfy@30c8d6b02b, which will be a while since I just released yesterday.Thank you for reporting and the detailed report!
@Histalek commented on GitHub (Jun 25, 2022):
Thanks for fixing this so quickly!
I'm totally fine waiting for the next release, the workaround is easy enough :D
@wtf911 commented on GitHub (May 7, 2025):
Not sure if this would be considered an issue or working correctly:
This works:
ntfy user -auth-file="\ntfy\user.db" add --role=admin phil
But this doesn't:
ntfy user add --role=admin phil -auth-file="\ntfy\user.db"
Just mentioning it because I figured it out by trial and error and could see someone else having trouble too.