-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
drivers/main.c: allow to specify a user for each driver via ups.conf #1293
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing with a
And for command-line option having precedence (though apparently the order of processing differs from my expectations when writing the message texts):
|
…in or configured values
…y of the "sockname" path used
This comment was marked as duplicate.
This comment was marked as duplicate.
… in help; check if "nobody" group is not resolvable when "nogroup" us to use it as default RUN_AS_GROUP instead
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as outdated.
This comment was marked as outdated.
This was referenced Feb 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
permissions
service/daemon start/stop
General subject for starting and stopping NUT daemons (drivers, server, monitor); also BG/FG/Debug
USB
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #1288
Enhances earlier ability to start ALL drivers as a non-built-in account, by setting
user = "name"
inups.conf
global section, adding a similar ability to override this further at each driver's level.Tested to accept and report the flag (along with debug-level passthrough from
upsdrvctl
, done by #1287), e.g.:Anticipated as most-useful when counter-acting non-persistent device filesystem node permissions, so local-media drivers (USB, maybe serial).
Additionally, this fixes a possible issue with earlier global-level
user
setting, where the filesystem socket could be created by the driver as not accessible to unprivilegedupsd
process. Now this should behave better by default, and can be twisted explicitly with newgroup
setting in global and/or driver level configuration.