upsd.users \- Administrative user definitions for NUT upsd
.SH"DESCRIPTION"
.sp
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\&.
.sp
Each user gets its own section\&. The fields in that section set the parameters associated with that user\(cqs 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\&.
.sp
Here are some examples to get you started:
.sp
.ifn\{\
.RS4
.\}
.nf
[admin]
password = mypass
actions = set
instcmds = all
.fi
.ifn\{\
.RE
.\}
.sp
.ifn\{\
.RS4
.\}
.nf
[pfy]
password = duh
instcmds = test\&.panel\&.start
instcmds = test\&.panel\&.stop
.fi
.ifn\{\
.RE
.\}
.sp
.ifn\{\
.RS4
.\}
.nf
[monmaster]
password = blah
upsmon master
.fi
.ifn\{\
.RE
.\}
.sp
.ifn\{\
.RS4
.\}
.nf
[monslave]
password = abcd
upsmon slave
.fi
.ifn\{\
.RE
.\}
.SH"FIELDS"
.PP
\fBpassword\fR
.RS4
Set the password for this user\&.
.RE
.PP
\fBactions\fR
.RS4
Allow the user to do certain things with upsd\&. Valid actions are:
.PP
SET
.RS4
change the value of certain variables in the UPS
.RE
.PP
FSD
.RS4
set the forced shutdown flag in the UPS\&. This is equivalent to an "on battery + low battery" situation for the purposes of monitoring\&.
.sp
The list of actions is expected to grow in the future\&.
.RE
.RE
.PP
\fBinstcmds\fR
.RS4
Let a user initiate specific instant commands\&. Use "ALL" to grant all 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"\&.
.sp
The
cmdvartab
file supplied with the distribution contains a list of most of the known command names\&.
.RE
.PP
\fBupsmon\fR
.RS4
Add the necessary actions for a upsmon process to work\&. This is either set to "master" or "slave"\&.
.sp
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\&.
.RE
.SH"SEE ALSO"
.sp
\fBupsd\fR(8), \fBupsd.conf\fR(5)
.SH"INTERNET RESOURCES"
.sp
The NUT (Network UPS Tools) home page: http://www\&.networkupstools\&.org/