File: upsd.users.5

package info (click to toggle)
nut 2.2.2-6.5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,240 kB
  • ctags: 4,918
  • sloc: ansic: 42,528; sh: 10,284; makefile: 860
file content (92 lines) | stat: -rw-r--r-- 2,303 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.TH UPSD.USERS 5 "Mon Jul 14 2003" "" "Network UPS Tools (NUT)"
.SH NAME
upsd.users \- Administrative user definitions for NUT upsd

.SH DESCRIPTION

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
name in brackets or EOF.

Here are some examples to get you started:

.IP
.nf
	[admin]
		password = mypass
		allowfrom = workstation admhome
		actions = set
		instcmds = all

	[pfy]
		password = duh
		allowfrom = gameosbox
		instcmds = test.panel.start

	[monmaster]
		password = blah
		allowfrom = bigserver
		upsmon master

	[monslave]
		password = abcd
		allowfrom = workstation
		upsmon slave
.fi
.LP

.SH FIELDS

.IP password

Set the password for this user.

.IP allowfrom

Grant access to the user based on the source IP address.  The values for
this field are the names of your ACLs in the \fBupsd.conf\fR(5).

.IP actions

Allow the user to do certain things with upsd.
Valid actions are:

	SET \(hy change the value of certain variables in the UPS

	FSD \(hy set the forced shutdown flag in the UPS.  This is 
equivalent to an "on battery + low battery" situation for the purposes
of monitoring.

The list of actions is expected to grow in the future.

.IP instcmds

Let a user initiate specific instant commands.  Use "ALL" to grant all
commands automatically.  For the full list of what your UPS supports,
use "upscmd \-l".  

The \fBcmdvartab\fR file supplied with the distribution contains a list
of most of the known command names.

.IP upsmon

Add the necessary actions for a upsmon process to work.  This is either
set to "master" or "slave".

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.

.SH SEE ALSO

\fBupsd\fR(8), \fBupsd.conf\fR(5)

.SS Internet resources:
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/