UPSD.USERS(5)
π UPSD.USERS(5) π
okay so bestie, this is the manual page for upsd.users from the NUT Manual β aka the Network UPS Tools crew. it's a file format page, not a command page, so buckle up and let's get into it π
β¨ NAME β¨
upsd.users β Administrative user definitions for NUT upsd data server
πΈ DESCRIPTION πΈ
so here's the tea: administrative commands like setting variables and the instant commands are powerful, and access to them needs to be restricted. no cap. this file defines who may access them, and what is available. that's literally it, that's the whole job π
π IMPORTANT NOTES π
okay these ones actually matter, don't skip them π
- Contents of this file should be pure ASCII (character codes not in range would be ignored with a warning message).
- Balance the run-time user permissions to access the file (and perhaps the directory it is in) for only
upsdto be able to read it; write access is not needed. It is common to usechown root:nutandchmod 640to set up acceptable file permissions.- Packages (and build recipes) typically prepare one set of user and group accounts for NUT. Custom builds with minimal configuration might even use
nobody:nogroupor similar, which is inherently insecure. π¬ - On systems with extra security concerns, NUT drivers and data server should run as separate user accounts which would be members of one same group for shared access to local Unix socket files and the directory they are in, but different groups for configuration file access. This would need some daemons to use customized
user,group,RUN_AS_USERand/orRUN_AS_GROUPsettings to override the single built-in value. - Note that the monitoring, logging, etc. clients are networked-only. They do not need access to these files and directories, and can run as an independent user and group altogether. slay, separation of concerns β¨
- Keep in mind the security of also any backup copies of this file, e.g. the archive files it might end up in. yes, your tarballs. those tarballs. π
- Packages (and build recipes) typically prepare one set of user and group accounts for NUT. Custom builds with minimal configuration might even use
π¦ SECTIONS π¦
Each user gets its own section. The fields in that section set the parameters associated with that user's privileges. The section begins with the name of the user in brackets, and continues until the next user name in brackets or EOF. These users are independent of /etc/passwd or other OS account databases. (yes bestie, this is its own little universe π«)
Here are some examples to get you started:
[admin]
password = mypass
actions = set
actions = fsd
instcmds = all
[pfy]
password = duh
instcmds = test.panel.start
instcmds = test.panel.stop
[upswired]
password = blah
upsmon primary
[observer]
password = abcd
upsmon secondary
π FIELDS π
passwordβ Set the password for this user.actionsβ Allow the user to do certain things withupsd. To specify multiple actions, use multiple instances of theactionsfield. Valid actions are:SETβ change the value of certain variables in the UPSFSDβ set the forced shutdown flag in the UPS. This is equivalent to an "on battery + low battery" situation for the purposes of monitoring.
The list of actions is expected to grow in the future. (so like, watch this space fr fr π)
instcmdsβ Let a user initiate specific instant commands. UseALLto grant all commands automatically. To specify multiple commands, use multiple instances of theinstcmdsfield. For the full list of what your UPS supports, useupscmd -l.
The cmdvartab file supplied with the NUT distribution contains a list of most of the generally known command names.
upsmonβ Add the necessary actions for anupsmonprocess, and can be viewed as a role of a particular client instance to work with this data server instance. This is either set toprimary(may requestFSD) orsecondary(follows critical situations to shut down when needed).
Do not attempt to assign actions toupsmonby hand, as you may miss something important. This method of designating a "upsmonuser" was created so internal capabilities could be changed later on without breaking existing installations (potentially using actions that are not exposed for direct assignment). like pls just trust the process bestie π
β SEE ALSO β
π Internet resources:
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.5/
and that's the whole page, bestie π this was Network UPS Tools 2.8.5, dated 10/07/2026, and it ate, no crumbs. go forth and configure your users responsibly, ily π«Άβ¨
π¦ where this page comes from
- fedora 43: nut 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 43: nut 2.8.5-9.fc43 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: nut 2.8.5-9.fc44 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms