################################################################################
# The daemon_users file lists the local users that are authorized to control
# and, in some cases, make use of the various EMC Solution Enabler daemons.
#
# CAUTION: this file should be protected so that only privileged users can
# make changes to it.
#
# Privileged users (root on Unix, in the Administrator's group on Windows)
# do not need to be listed here - they are automatically authorized.
#
# Only authorized users are allowed to control daemons via the stordaemon
# utility:
#       stordaemon shutdown ...
#       stordaemon setvar   ...
#       etc.
#
# Entries in this file are allowed to have one of the following formats:
#
#    smith       storapid               Local user 'smith' is authorized to make
#                                       use of the storapid daemon.
#
#    ENG/smith   storapid               Windows: local user 'smith' in the 'ENG'
#                                       Domain is authorized to make use of the
#                                       storapid daemon.
#
#    smith       storora*               The '*' character is a wildcard.  Local
#                                       user 'smith' is authorized to make use
#                                       of any daemons whose name begins with
#                                       'storora' (i.e.: the SRM Oracle DB
#                                       Daemons).
#
#    smith       stororad  freeze,...   Local user 'smith' is authorized to
#                                       perform freeze and thaw operations via
#                                       the stororad daemon (i.e.: the SRM
#                                       Oracle DB Daemon).  The third column
#                                       consists of a comma separated list of
#                                       operations that the user is authorized
#                                       to perform.  These are listed below.
#
#
# If a user matches multiple lines in this file, the first is used.  For
# example, user 'smith' accessing daemon 'stororad' will match both of
# the following lines.  Since the first will be used, he will be permitted
# to perform freze and thaw operations - but not startup new DB instances.
#
#    smith       stororad  freeze
#    smith       storora*  startup_instance
#
#
# A user name of '<all>' means that the entry applies all users.
# A daemon name of '<all>' means that the entry applies to all daemons.
# For example:
#
#    <all>       storgnsd               Anyone can control storgnsd.
#    smith       <all>                  User 'smith' can control all daemons.
#
################################################################################


################################################################################
### storapid [Base Daemon] notes
###
###     This daemon is required. It facilitates I/O accesses
###     to Symmetrix storage arrays.  Refer to its man page.
###
###     One of storapid's tasks is to perform Symmetrix I/O operations on behalf
###     of users who would not normally be permitted to do so.  Storapid will
###     only perform these operations on behalf of users who are authorized
###     to use it.
###
###     As noted above, only authorized users can perform stordaemon control
###     operations (e.g., shutdown).
################################################################################

# smith         storapid



################################################################################
### Database Daemon notes
###
###     These daemons are used by the EMC Solution Enabler SRM component to 
###     communicate with various Database products (Oracle, Sybase, etc.).
###     Refer to their man pages.
###     Daemon names can be one of the following:
###            stororad         One of the Oracle DB Daemons
###            storsqld         One of the SQL-Server DB Daemons
###            storsybsd        One of the Sybase DB Daemons
###            storudb          One of the UDB DB Daemons
###            storifmxd        One of the Informix DB Daemons
###
###         If a Database SID (Instance) is being used, that is appended
###         to the daemon name as follows:
###            stororadInst1        Instance (SID) 'Inst1' of Oracle DB Daemon
###
###         As discussed earlier, wildcarding on the daemon name is possible:
###            stororad         Applies to the default (no SID) daemon
###            stororadInst1    Applies to the 'Inst1' instance of the daemon
###            stororad*        Applies to any instance of the daemon -
###                               including the default (no SID) one
###
###     This authorization mechanism does not apply to ordinary SRM Database
###     operations - since a user name and password are provided at DB connect
###     time.
###
###     The third column contains a comma separated list of keywords that
###     authorize a user to perform certain additional DataBase control
###     operations.  Specifically:
###         freeze              The user is authorized to perform DB freeze and
###                             thaw operations.
###
###         startup_instance    The user is authorized to start a DB instance.
###
###         shutdown_instance   The user is authorized to shutdown a DB
###                             instance.
###
###         <all>               The user is authorized to issue any operations
###                             against the DB daemon.
###
###     If the third column is empty, the user cannot perform these operations.
###
###     As noted above, only authorized users can perform stordaemon control
###     operations (e.g., shutdown).
################################################################################

# smith         stororad*       freeze,startup_instance
# jones         stororad*       shutdown_instance
# smith         stororad*       <all>

################################################################################
### SRM Daemon notes:
###
###     This daemon is used to support SRM non-root operations.
###     The third column contains a comma separated list of keywords that
###     authorize a user to perform certain additional SRM control 
###     operations.  Specifically:
###
###         file_allocate      allocate a file
###
###         file_extend        extend a file
###
###         file_trim          trim a file
###
###         fs_flush           flush a file system
###
###         fs_freeze          freeze a file system
###
###         fs_thaw            thaw a file system
###
###         lv_create          create a logical volume
###
###         lv_delete          delete a logical volume
###
###         lv_resize          resize a logical volume
###
###         lv_mirror_add      add a logical volume mirror
###
###         lv_mirror_remove   remove a logical volume mirror
###
###         vg_create          create a volume group
###
###         vg_control         control operations on a volume group
###
###         vg_delete          delete a volume group
###
###         vg_device_add      add device to the volume group
###
###         vg_device_remove   remove device from volume group
###
###         vg_recover         recover a volume group
###
###         <all>              perform any operations
###
###     If the third column is empty, the user cannot perform these operations.
###
###     As noted above, only authorized users can perform stordaemon control
###     operations (e.g., shutdown).
################################################################################

# smith       storsrmd        file_allocate,fs_flush
# jones       storsrmd        lv_create
# smith       storsrmd        <all>

################################################################################
### storgnsd [Group Name Service (GNS) Daemon] notes
###
###     This daemon is optional and is used to to support GNS on a host.
###     Refer to the storgnsd(3) man page for additional details.
###     
###     Because GNS maintains group definitions that are shared across multiple
###     hosts, only users who are authorized in this file are allowed to
###     operate upon groups stored within GNS.
###
###     As noted above, only authorized users can perform stordaemon control
###     operations (e.g., shutdown).
################################################################################

# smith         storgnsd

################################################################################
### storevntd [Event Daemon] notes
###
###     Refer to the storevntd(3) man page for additional details.
###
###     As noted above, only authorized users can perform stordaemon control
###     operations (e.g., shutdown).
################################################################################

# smith         storevntd

################################################################################
### storrdfd [RDF Consistency Daemon] notes
###
###     Refer to the storrdfd(3) man page for additional details.
###
###     As noted above, only authorized users can perform stordaemon control
###     operations (e.g., shutdown).
################################################################################

# smith         storrdfd
