diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:16:02 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:16:02 -0700 |
| commit | 40f81d08239763c2b5c05af63f17e3fd098d978d (patch) | |
| tree | b4475da076490a5fadc69904ad26bcf4ac46b9fc /nut/iron/upsd.users | |
init
Diffstat (limited to 'nut/iron/upsd.users')
| -rw-r--r-- | nut/iron/upsd.users | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/nut/iron/upsd.users b/nut/iron/upsd.users new file mode 100644 index 0000000..30af253 --- /dev/null +++ b/nut/iron/upsd.users @@ -0,0 +1,86 @@ +[admin] + password = baller + actions = set + actions = fsd + instcmds = all + upsmon primary + +[observer] + password = 98072 + upsmon secondary + +# Network UPS Tools: Example upsd.users +# +# This file sets the permissions for upsd - the UPS network daemon. +# Users are defined here, are given passwords, and their privileges are +# controlled here too. Since this file will contain passwords, keep it +# secure, with only enough permissions for upsd to read it. + +# -------------------------------------------------------------------------- + +# Each user gets a section. To start a section, put the username in +# brackets on a line by itself. To set something for that user, specify +# it under that section heading. The username is case-sensitive, so +# admin and AdMiN are two different users. +# +# Possible settings: +# +# password: The user's password. This is case-sensitive. +# +# -------------------------------------------------------------------------- +# +# actions: Let the user do certain things with upsd. +# +# Valid actions are: +# +# SET - change the value of certain variables in the UPS +# FSD - set the "forced shutdown" flag in the UPS +# +# -------------------------------------------------------------------------- +# +# instcmds: Let the user initiate specific instant commands. Use "ALL" +# to grant all commands automatically. There are many possible +# commands, so use 'upscmd -l' to see what your hardware supports. Here +# are a few examples: +# +# test.panel.start - Start a front panel test +# test.battery.start - Start battery test +# test.battery.stop - Stop battery test +# calibrate.start - Start calibration +# calibrate.stop - Stop calibration +# +# -------------------------------------------------------------------------- +# +# Example: +# +# [admin] +# password = mypass +# actions = SET +# instcmds = ALL +# + +# +# --- Configuring for a user who can execute tests only +# +# [testuser] +# password = pass +# instcmds = test.battery.start +# instcmds = test.battery.stop + +# +# --- Configuring for upsmon +# +# To add a user for your upsmon, use this example: +# +# [upsmon] +# password = pass +# upsmon primary +# or +# upsmon secondary +# +# The matching MONITOR line in your upsmon.conf would look like this: +# +# MONITOR myups@localhost 1 upsmon pass primary (or secondary) +# +# See comments in the upsmon.conf(.sample) file for details about this +# keyword and the difference of NUT secondary and primary systems. |
