RUNPRIV(1M)                                                        RUNPRIV(1M)


NAME
     runpriv - run privileged commands

SYNOPSIS
     /usr/sysadm/bin/runpriv [ -auth auth-scheme ] privilege ...

DESCRIPTION
     runpriv checks to see if you have been granted privilege, and if so it
     runs the command privilege found in the directory /usr/sysadm/privbin
     with the remaining arguments.

     runpriv succeeds if any one of following conditions are met:

     1.   You are running as root.

     2.   There is no root password on the system.

     3.   The file /var/sysadm/defaultPrivileges/privilege exists and has the
          string "on" as its first line (see defaultPrivileges(4)).

     4.   There is an entry in the privilegedUsers(4) database granting you
          all privileges.

     5.   There is an entry in the privilege(4) database granting you the
          requested privilege, and you are not an NIS user.

     6.   The -auth auth-scheme arguments are provided, and you pass the
          authentication test.  If auth-scheme is unix, then you must type the
          root password when prompted in order to pass.

     Checks 3, 4, and 5 will automatically fail if the privileges
     configuration file in /etc/config is not on (see chkconfig(1M)).

NOTE
     runpriv will fail if the arguments contain any of the following special
     characters: ";", "|", "<",">", "`", "!" and "#".

FILES
     /usr/sysadm/privbin/*               Privileged commands
     /usr/sysadm/authdso/*               Authentication schemes
     /var/sysadm/privilege               Privilege database
     /var/sysadm/privilegedUsers         Privileged users database
     /var/sysadm/defaultPrivileges/*     Default privileges
     /var/sysadm/privenviron             Environment of privileged command
     /var/sysadm/home                    Home directory for privileged command
     /etc/config/privileges              Privilege configuration flag

SEE ALSO
     sysmgr(1M), checkpriv(1M), addpriv(1M), rmpriv(1M), adddefpriv(1m),
     rmdefpriv(1m), addprivuser(1M), rmprivuser(1M), chkconfig(1M),
     privilege(4), defaultPrivileges(4), privilegedUsers(4).


                                                                        Page 2