2011-01-26 09:35:08 +00:00
'\" t
. \" Title: upsd.users
2022-06-29 10:37:36 +00:00
. \" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
. \" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
. \" Date: 04/26/2022
2011-01-26 09:35:08 +00:00
. \" Manual: NUT Manual
2022-06-29 10:37:36 +00:00
. \" Source: Network UPS Tools 2.8.0
2011-01-26 09:35:08 +00:00
. \" Language: English
. \"
2022-06-29 10:37:36 +00:00
.TH "UPSD\&.USERS" "5" "04/26/2022" "Network UPS Tools 2\&.8\&.0" "NUT Manual"
2011-01-26 09:35:08 +00:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
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\(cq 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\& .
.sp
Here are some examples to get you started:
.sp
.if n \{ \
.RS 4
. \}
.nf
[admin]
password = mypass
actions = set
2012-06-01 13:55:19 +00:00
actions = fsd
2011-01-26 09:35:08 +00:00
instcmds = all
.fi
.if n \{ \
.RE
. \}
.sp
.if n \{ \
.RS 4
. \}
.nf
[pfy]
password = duh
instcmds = test\& .panel\& .start
instcmds = test\& .panel\& .stop
.fi
.if n \{ \
.RE
. \}
.sp
.if n \{ \
.RS 4
. \}
.nf
2022-06-29 10:37:36 +00:00
[upswired]
2011-01-26 09:35:08 +00:00
password = blah
2022-06-29 10:37:36 +00:00
upsmon primary
2011-01-26 09:35:08 +00:00
.fi
.if n \{ \
.RE
. \}
.sp
.if n \{ \
.RS 4
. \}
.nf
2022-06-29 10:37:36 +00:00
[observer]
2011-01-26 09:35:08 +00:00
password = abcd
2022-06-29 10:37:36 +00:00
upsmon secondary
2011-01-26 09:35:08 +00:00
.fi
.if n \{ \
.RE
. \}
.SH "FIELDS"
.PP
\fB password\fR
.RS 4
Set the password for this user\& .
.RE
.PP
\fB actions\fR
.RS 4
2012-06-01 13:55:19 +00:00
Allow the user to do certain things with upsd\& . To specify multiple actions, use multiple instances of the
\fB actions\fR
field\& . Valid actions are:
2011-01-26 09:35:08 +00:00
.PP
SET
.RS 4
change the value of certain variables in the UPS
.RE
.PP
FSD
.RS 4
set the forced shutdown flag in the UPS\& . This is equivalent to an "on battery + low battery" situation for the purposes of monitoring\& .
.RE
.RE
2012-06-01 13:55:19 +00:00
.sp
The list of actions is expected to grow in the future\& .
2011-01-26 09:35:08 +00:00
.PP
\fB instcmds\fR
.RS 4
2012-06-01 13:55:19 +00:00
Let a user initiate specific instant commands\& . Use "ALL" to grant all commands automatically\& . To specify multiple commands, use multiple instances of the
\fB instcmds\fR
field\& . For the full list of what your UPS supports, use "upscmd \- l"\& .
2011-01-26 09:35:08 +00:00
.sp
The
cmdvartab
file supplied with the distribution contains a list of most of the known command names\& .
.RE
.PP
\fB upsmon\fR
.RS 4
2022-06-29 10:37:36 +00:00
Add the necessary actions for a upsmon process to work\& . This is either set to "primary" or "secondary"\& .
2011-01-26 09:35:08 +00:00
.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
\fB upsd\fR (8), \fB upsd.conf\fR (5)
2022-06-29 10:37:36 +00:00
.SS "Internet resources:"
2011-01-26 09:35:08 +00:00
.sp
The NUT (Network UPS Tools) home page: http://www\& .networkupstools\& .org/