nut/docs/man/upsd.users.txt

89 lines
2.1 KiB
Text
Raw Normal View History

2011-01-26 09:35:08 +00:00
UPSD.USERS(5)
=============
2010-03-25 23:20:59 +00:00
2011-01-26 09:35:08 +00:00
NAME
----
upsd.users - Administrative user definitions for NUT upsd
DESCRIPTION
-----------
2010-03-25 23:20:59 +00: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.
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
2011-01-26 09:35:08 +00:00
name in brackets or EOF. These users are independent of /etc/passwd.
2010-03-25 23:20:59 +00:00
Here are some examples to get you started:
[admin]
password = mypass
actions = set
instcmds = all
[pfy]
password = duh
instcmds = test.panel.start
2011-01-26 09:35:08 +00:00
instcmds = test.panel.stop
2010-03-25 23:20:59 +00:00
[monmaster]
password = blah
upsmon master
[monslave]
password = abcd
upsmon slave
2011-01-26 09:35:08 +00:00
FIELDS
------
2010-03-25 23:20:59 +00:00
2011-01-26 09:35:08 +00:00
*password*::
2010-03-25 23:20:59 +00:00
Set the password for this user.
2011-01-26 09:35:08 +00:00
*actions*::
2010-03-25 23:20:59 +00:00
Allow the user to do certain things with upsd.
Valid actions are:
2011-01-26 09:35:08 +00:00
SET;; change the value of certain variables in the UPS
2010-03-25 23:20:59 +00:00
2011-01-26 09:35:08 +00:00
FSD;; set the forced shutdown flag in the UPS. This is
2010-03-25 23:20:59 +00:00
equivalent to an "on battery + low battery" situation for the purposes
of monitoring.
2011-01-26 09:35:08 +00:00
+
2010-03-25 23:20:59 +00:00
The list of actions is expected to grow in the future.
2011-01-26 09:35:08 +00:00
*instcmds*::
2010-03-25 23:20:59 +00:00
Let a user initiate specific instant commands. Use "ALL" to grant all
2011-01-26 09:35:08 +00:00
commands automatically. To specify multiple commands, use multiple
instances of the instcmds field. For the full list of what your UPS
supports, use "upscmd -l".
+
The +cmdvartab+ file supplied with the distribution contains a list
2010-03-25 23:20:59 +00:00
of most of the known command names.
2011-01-26 09:35:08 +00:00
*upsmon*::
2010-03-25 23:20:59 +00:00
Add the necessary actions for a upsmon process to work. This is either
set to "master" or "slave".
2011-01-26 09:35:08 +00:00
+
2010-03-25 23:20:59 +00: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 09:35:08 +00:00
SEE ALSO
--------
2010-03-25 23:20:59 +00:00
2011-01-26 09:35:08 +00:00
linkman:upsd[8], linkman:upsd.conf[5]
2010-03-25 23:20:59 +00:00
2011-01-26 09:35:08 +00:00
INTERNET RESOURCES
------------------
2010-03-25 23:20:59 +00:00
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/