Manual entry for xvprights.conf:

xvprights.conf (5)                                          xvprights.conf (5)

NAME
       xvprights.conf - Rights definition file for xvpweb

SYNOPSIS
       The  xvprights.conf file is a rights definition file for xvpweb(7), the
       web based front end for xvp(8).

       It  determines  how  rights  assigned   to   a   user   in   the   file
       xvpusers.conf(5)  relate  to individual operations the user may perform
       on virtual machines using xvpweb(7).  For instance, the default  rights
       definitions are such that a user needs control rights to boot a virtual
       machine, but all rights in order to migrate a virtual machine from  one
       server host to another.

       Whereas  the  rights  defined in xvpusers.conf(5) are per-user, and can
       give a user different rights for different virtual machines, the  rela-
       tionship  between  operations  and  rights  defined in xvpusers.conf(5)
       apply uniformly to all users and all virtual machines.

DEFAULT AND CUSTOM DEFINITIONS
       The default relationships between operations and rights are defined  in
       the file /usr/share/xvp/xvprights.default, which is supplied as a stan-
       dard part of xvpweb(7).  This file is not intended to  be  modified  by
       the  administrator,  and  it may be overwritten when a newer version of
       xvpweb(7) is installed.

       An administrator wishing to change the default definitions should  copy
       /usr/share/xvp/xvprights.default as /etc/xvprights.conf, and modify the
       latter in order to specify custom definitions.  If you are happy to use
       the  default  definitions, do not create a separate /etc/xvprights.conf
       file.  To revert to using the default definitions,  simply  delete  any
       /etc/xvprights.conf  file.   Installing a new version of xvpweb(7) does
       not overwrite the custom definitions file.

       An example use for /etc/xvprights.conf might be  to  raise  the  rights
       needed  to  suspend  virtual machines, from control to all, or to lower
       the rights needed to connect ISO images as virtual DVD drives from  all
       to control or to write.

       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.

FILE FORMAT
       The same format is used for both  /usr/share/xvp/xvprights.default  and
       /etc/xvprights.conf.

       Each  line  should  consist of the name of one of the operations prede-
       fined by xvpweb(7), followed by a colon, ':', followed by the  name  of
       one of the rights predefined by xvpweb(7).  For example,

              migrate:all

       which  says  that  the migrate operation requires all 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:

              migrate : all # Migrate a VM to a different host

       is valid, and equivalent to the example above.

       The complete set of currently defined operations is as  listed  in  the
       supplied  /usr/share/xvp/xvprights.default  file, which is commented to
       explain the meaning of each.  The complete  set  of  currently  defined
       rights  is as listed in the xvpusers.conf(5) manual page.  In addition,
       the  value  disabled  may   be   specified   for   any   operation   in
       /etc/xvprights.conf: the effect of this is to disable use of the opera-
       tion by all users, even if they have  all  rights.   For  example,  the
       line:

              suspend : disabled

       would prevent all users of xvpweb from suspending any virtual machines.

CAVEATS
       If the definition for a particular operation is missing, the  operation
       is assumed to be disabled.

       If  the  file  /etc/xvprights.conf  exists  and   is   readable,   then
       /usr/share/xvp/xvprights.default is not read at all: there is no facil-
       ity to fall back to the latter for any individual operations whose def-
       inition may be missing from the former.  Administrators who have custom
       definitions should check, when they install any updated version of xvp-
       web(7),  whether  there  are  updates to the default file that they may
       need to reflect in their custom file.

       Rights definition files need to have filesystem permissions  such  that
       they are readable by the web server program: an unreadable file is qui-
       etly treated as if missing.  Administrators are recommended to set  any
       /etc/xvprights.conf file to have ownership 'root' and mode 644.

       The  rights  required  to  access  server  hosts (as opposed to virtual
       machines) are defined separately using  xvpusers.conf(5):  the  use  of
       xvprights.conf(5) does not affect this in any way.

FILES
       /usr/share/xvp/xvprights.default
              File  containing default definitions, not intended to be edited.
       /etc/xvprights.conf
              Optional file defining custom definitions.

SEE ALSO
       xvp.conf(5), xvpusers.conf(5), xvp(8), xvpweb(7)

AUTHOR
       Colin Dean gro.ecruospvx@niloc

COPYRIGHT
       Copyright (C) 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 MER-
       CHANTABILITY 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  xvp(8), xvpdiscover(8)  and
       xvptag(8) was based on code supplied in the XenServer C SDK  5.0.0,  to
       which the following copyright statement applies:

       Copyright (C) 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  WAR-
       RANTIES  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 DAM-
       AGES 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.

xvprights.conf (5)                                          xvprights.conf (5)