-
Notifications
You must be signed in to change notification settings - Fork 14
/
xvprights.conf.5
160 lines (144 loc) · 6.57 KB
/
xvprights.conf.5
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
.TH "XVPRIGHTS.CONF" "5" "11 January 2011" "Colin Dean" "Colin Dean"
.SH NAME
xvprights.conf \- Rights definition file for xvpweb
.SH SYNOPSIS
The \fIxvprights.conf\fR file is a rights definition file for
\fBxvpweb\fR(7), the web based front end for \fBxvp\fR(8).
It determines how \fBrights\fR assigned to a user in the file
\fIxvpusers.conf\fR(5) relate to individual \fBoperations\fR the user
may perform on virtual machines using \fBxvpweb\fR(7). For instance,
the default rights definitions are such that a user needs \fBcontrol\fR
rights to boot a virtual machine, but \fBall\fR rights in order to
migrate a virtual machine from one server host to another.
.PP
Whereas the \fBrights\fR defined in \fIxvpusers.conf\fR(5) are per-user,
and can give a user different rights for different virtual machines, the
relationship between \fBoperations\fR and \fBrights\fR defined in
\fIxvpusers.conf\fR(5) apply uniformly to all users and all virtual
machines.
.SH DEFAULT AND CUSTOM DEFINITIONS
The default relationships between operations and rights are defined in
the file \fI/usr/share/xvp/xvprights.default\fR, which is supplied as a
standard part of \fBxvpweb\fR(7). This file is not intended to be
modified by the administrator, and it may be overwritten when a newer
version of \fBxvpweb\fR(7) is installed.
.PP
An administrator wishing to change the default definitions should copy
\fI/usr/share/xvp/xvprights.default\fR as \fI/etc/xvprights.conf\fR, and
modify the latter in order to specify custom definitions. If you are
happy to use the default definitions, do not create a separate
\fI/etc/xvprights.conf\fR file. To revert to using the default
definitions, simply delete any \fI/etc/xvprights.conf\fR file.
Installing a new version of \fBxvpweb\fR(7) does not overwrite the
custom definitions file.
.PP
An example use for \fI/etc/xvprights.conf\fR might be to raise the
rights needed to suspend virtual machines, from \fBcontrol\fR to
\fBall\fR, or to lower the rights needed to connect ISO images as
virtual DVD drives from \fBall\fR to \fBcontrol\fR or to \fBwrite\fR.
.PP
Any changes made to definitions files take effect immediately: there is
no need to restart any server processes, and users' web browsers should
reflect any changes (for example, disabling or enabling context menu
items) within 1 minute.
.SH FILE FORMAT
The same format is used for both \fI/usr/share/xvp/xvprights.default\fR
and \fI/etc/xvprights.conf\fR.
.PP
Each line should consist of the name of one of the operations predefined by
\fBxvpweb\fR(7), followed by a colon, ':', followed by the name of one
of the rights predefined by \fBxvpweb\fR(7). For example,
.PP
.RS
\fBmigrate:all\fR
.RE
.PP
which says that the \fBmigrate\fR operation requires \fBall\fR rights.
If a '#' appears on a line, the rest of the line is treated as a
comment. Blank lines and additional white-space may be used to aid
readability, so a line such as:
.PP
.RS
\fBmigrate : all # Migrate a VM to a different host\fR
.RE
.PP
is valid, and equivalent to the example above.
.PP
The complete set of currently defined operations is as listed in the
supplied \fI/usr/share/xvp/xvprights.default\fR file, which is commented
to explain the meaning of each. The complete set of currently defined
rights is as listed in the \fBxvpusers.conf\fR(5) manual page. In
addition, the value \fBdisabled\fR may be specified for any operation in
\fI/etc/xvprights.conf\fR: the effect of this is to disable use of the
operation by all users, even if they have \fBall\fR rights. For
example, the line:
.PP
.RS
\fBsuspend : disabled\fR
.RE
.PP
would prevent all users of \fBxvpweb\fR from suspending any virtual
machines.
.SH CAVEATS
If the definition for a particular operation is missing, the operation
is assumed to be disabled.
.PP
If the file \fI/etc/xvprights.conf\fR exists and is readable, then
\fI/usr/share/xvp/xvprights.default\fR is not read at all: there is no
facility to fall back to the latter for any individual operations whose
definition may be missing from the former. Administrators who have
custom definitions should check, when they install any updated version
of \fBxvpweb\fR(7), whether there are updates to the default file that
they may need to reflect in their custom file.
.PP
Rights definition files need to have filesystem permissions such that
they are readable by the web server program: an unreadable file is
quietly treated as if missing. Administrators are recommended to set
any \fI/etc/xvprights.conf\fR file to have ownership 'root' and mode 644.
.PP
The rights required to access server hosts (as opposed to virtual
machines) are defined separately using \fBxvpusers.conf\fR(5): the use
of \fBxvprights.conf\fR(5) does not affect this in any way.
.SH FILES
.PD 0
.TP
.I /usr/share/xvp/xvprights.default
File containing default definitions, not intended to be edited.
.TP
.I /etc/xvprights.conf
Optional file defining custom definitions.
.PD
.SH "SEE ALSO"
\fBxvp.conf\fR(5),
\fBxvpusers.conf\fR(5),
\fBxvp\fR(8),
\fBxvpweb\fR(7)
.SH AUTHOR
Colin Dean <[email protected]>
.SH COPYRIGHT
Copyright \(co 2009-2011 Colin Dean
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
Citrix is a registered trademark of Citrix Systems, Inc.
The VNC protocol was originally developed by the RealVNC team while at
Olivetti Research Ltd / AT&T Laboratories Cambridge.
A small part of the source code for \fBxvp\fR(8), \fBxvpdiscover\fR(8)
and \fBxvptag\fR(8) was based on code supplied in the XenServer C SDK
5.0.0, to which the following copyright statement applies:
Copyright \(co 2006-2008 Citrix Systems, Inc.
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.