Summary: | news/nzbget: init script should allow different user than root | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | lebel | ||||
Component: | Individual Port(s) | Assignee: | Mark Felder <feld> | ||||
Status: | Closed Not A Bug | ||||||
Severity: | Affects Only Me | CC: | feld, toxic | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(toxic) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Hello, The standard way of launching nzbget as a different user is to use the "DaemonUsername" setting in nzbget.conf. I believe this is why the rc script doesn't create its own user or offer nzbget_user setting by default. Why, I wonder how I missed that flag in nzbget.conf. I guess you can close the bug and maybe highlight the flag in the post-install output? A commit references this bug: Author: feld Date: Tue Mar 29 14:05:14 UTC 2016 New revision: 412111 URL: https://svnweb.freebsd.org/changeset/ports/412111 Log: news/nzbget: Add pkg-message to inform users how to drop privs PR: 207282 Changes: head/news/nzbget/Makefile head/news/nzbget/files/pkg-message.in |
Created attachment 167114 [details] example of an init script the script for starting/stopping nzbget should be more "rc.subr" friendly if one wants to run nzbget as a non-root user (as it should). In this sample, I put "nobody"/"nobody", but one could create a user named nzbget with proper group. Optionally, the package should create a user nzbget if non exists and use that in the initscript. Anyway. Just a suggestion. I manually replace the script with each update since the package overwrites it.