nut-debian/docs/man/upsd.users.txt

93 lines
2.2 KiB
Plaintext
Raw Normal View History

2011-01-26 11:35:08 +02:00
UPSD.USERS(5)
=============
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
NAME
----
2022-07-10 10:23:45 +03:00
2011-01-26 11:35:08 +02:00
upsd.users - Administrative user definitions for NUT upsd
DESCRIPTION
-----------
2010-03-26 01:20:59 +02:00
Administrative commands such as setting variables and the instant
commands are powerful, and access to them needs to be restricted. This
file defines who may access them, and what is available.
2022-07-10 10:23:45 +03:00
Each user gets its own section. The fields in that section set the
2010-03-26 01:20:59 +02:00
parameters associated with that user's privileges. The section begins
with the name of the user in brackets, and continues until the next user
2011-01-26 11:35:08 +02:00
name in brackets or EOF. These users are independent of /etc/passwd.
2010-03-26 01:20:59 +02:00
Here are some examples to get you started:
[admin]
password = mypass
actions = set
2012-06-01 16:55:19 +03:00
actions = fsd
2010-03-26 01:20:59 +02:00
instcmds = all
[pfy]
password = duh
instcmds = test.panel.start
2011-01-26 11:35:08 +02:00
instcmds = test.panel.stop
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
[upswired]
2010-03-26 01:20:59 +02:00
password = blah
2022-07-10 10:23:45 +03:00
upsmon primary
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
[observer]
2010-03-26 01:20:59 +02:00
password = abcd
2022-07-10 10:23:45 +03:00
upsmon secondary
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
FIELDS
------
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
*password*::
2010-03-26 01:20:59 +02:00
Set the password for this user.
2011-01-26 11:35:08 +02:00
*actions*::
2010-03-26 01:20:59 +02:00
2012-06-01 16:55:19 +03:00
Allow the user to do certain things with upsd. To specify multiple
actions, use multiple instances of the *actions* field. Valid
actions are:
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
SET;; change the value of certain variables in the UPS
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
FSD;; set the forced shutdown flag in the UPS. This is
2010-03-26 01:20:59 +02:00
equivalent to an "on battery + low battery" situation for the purposes
of monitoring.
2012-06-01 16:55:19 +03:00
2010-03-26 01:20:59 +02:00
The list of actions is expected to grow in the future.
2011-01-26 11:35:08 +02:00
*instcmds*::
2010-03-26 01:20:59 +02:00
Let a user initiate specific instant commands. Use "ALL" to grant all
2011-01-26 11:35:08 +02:00
commands automatically. To specify multiple commands, use multiple
2012-06-01 16:55:19 +03:00
instances of the *instcmds* field. For the full list of what your UPS
2011-01-26 11:35:08 +02:00
supports, use "upscmd -l".
+
The +cmdvartab+ file supplied with the distribution contains a list
2010-03-26 01:20:59 +02:00
of most of the known command names.
2011-01-26 11:35:08 +02:00
*upsmon*::
2010-03-26 01:20:59 +02:00
Add the necessary actions for a upsmon process to work. This is either
2022-07-10 10:23:45 +03:00
set to "primary" or "secondary".
2011-01-26 11:35:08 +02:00
+
2010-03-26 01:20:59 +02:00
Do not attempt to assign actions to upsmon by hand, as you may miss
something important. This method of designating a "upsmon user" was
created so internal capabilities could be changed later on without
breaking existing installations.
2011-01-26 11:35:08 +02:00
SEE ALSO
--------
2010-03-26 01:20:59 +02:00
2011-01-26 11:35:08 +02:00
linkman:upsd[8], linkman:upsd.conf[5]
2010-03-26 01:20:59 +02:00
2022-07-10 10:23:45 +03:00
Internet resources:
~~~~~~~~~~~~~~~~~~~
2010-03-26 01:20:59 +02:00
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/