[GH-ISSUE #421] Unable to use auth on new install #327

Closed
opened 2026-05-07 00:23:09 +02:00 by BreizhHardware · 2 comments

Originally created by @sebastien4 on GitHub (Sep 30, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/421

Hi,

I'm trying to make auth work on fresh Ubuntu install, using this:

  • ntfy systemctl service, using ntfy serve --config /path/server.yml
  • in server.xml, absolute path to auth-file and auth-default-access: "deny-all"

I'm following this: https://ntfy.sh/docs/config/#example-private-instance
When I try to add new user, I get this: option auth-file not set; auth is unconfigured for this server

What am I doing wrong? Sorry if I miss sth usually clear :/

Thanks.

Originally created by @sebastien4 on GitHub (Sep 30, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/421 Hi, I'm trying to make auth work on fresh Ubuntu install, using this: - ntfy systemctl service, using _ntfy serve --config /path/server.yml_ - in _server.xml_, absolute path to _auth-file_ and _auth-default-access: "deny-all"_ I'm following this: https://ntfy.sh/docs/config/#example-private-instance When I try to add new user, I get this: _option auth-file not set; auth is unconfigured for this server_ What am I doing wrong? Sorry if I miss sth usually clear :/ Thanks.
Author
Owner

@binwiederhier commented on GitHub (Sep 30, 2022):

Likely a duplicate of https://github.com/binwiederhier/ntfy/issues/401#issuecomment-1260287006

This is a documentation failure. The systemd service runs as user ntfy, so you have to execute the ACL updates as that user: sudo -u ntfy ntfy user add --role=admin someuser

<!-- gh-comment-id:1264030796 --> @binwiederhier commented on GitHub (Sep 30, 2022): Likely a duplicate of https://github.com/binwiederhier/ntfy/issues/401#issuecomment-1260287006 This is a documentation failure. The systemd service runs as user `ntfy`, so you have to execute the ACL updates as that user: `sudo -u ntfy ntfy user add --role=admin someuser`
Author
Owner

@sebastien4 commented on GitHub (Oct 1, 2022):

Indeed, you must use paths (bin, etc, db) mentioned in documentation in order for this to work.
Thanks @binwiederhier.

<!-- gh-comment-id:1264380171 --> @sebastien4 commented on GitHub (Oct 1, 2022): Indeed, you must use paths (bin, etc, db) mentioned in documentation in order for this to work. Thanks @binwiederhier.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#327
No description provided.