MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


User Commands                                           pfexec(1)



NAME
     pfexec, pfsh, pfcsh, pfksh - execute a command in a profile

SYNOPSIS
     /usr/bin/pfexec command


     /usr/bin/pfexec -P privspec command [ arg ]...


     /usr/bin/pfsh [ options ] [ argument ]...


     /usr/bin/pfcsh [ options ] [ argument ]...


     /usr/bin/pfksh [ options ] [ argument ]...


DESCRIPTION
     The pfexec program is used  to  execute  commands  with  the
     attributes   specified   by   the  user's  profiles  in  the
     execattr(4) database. It is invoked by the profile  shells,
     pfsh, pfcsh, and pfksh which are linked to the Bourne shell,
     C shell, and Korn shell, respectively.


     Profiles are searched in the order specified in  the  user's
     entry  in  the  userattr(4)  database.  If the same command
     appears in more than one profile, the profile shell uses the
     first matching entry.


     The second form, pfexec -P privspec, allows a user to obtain
     the  additional privileges awarded to the user's profiles in
     profattr(4). The privileges specification on  the  commands
     line  is  parsed  using  privstrtoset(3C).  The resulting
     privileges are intersected with the union of the  privileges
     specified  using the "privs" keyword in profattr(4) for all
     the user's profiles and added to the inheritable set  before
     executing the command.

USAGE
     pfexec is used to execute commands with  predefined  process
     attributes,  such as specific user or group IDs.


     Refer to the sh(1), csh(1), and ksh(1) man  pages  for  com-
     plete usage descriptions of the profile shells.

EXAMPLES




SunOS 5.11           Last change: 3 Mar 2003                    1






User Commands                                           pfexec(1)



     Example 1 Obtaining additional user privileges

       example% pfexec -P all chown user file




     This command  runs  chown  user  file  with  all  privileges
     assigned   to   the   current   user,  not  necessarily  all
     privileges.


EXIT STATUS
     The following exit values are returned:

     0     Successful completion.


     1     An error occurred.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Availability                 SUNWcsu                     
    


SEE ALSO
     csh(1),   ksh(1),    profiles(1),    sh(1),    execattr(4),
     profattr(4), userattr(4), attributes(5)


















SunOS 5.11           Last change: 3 Mar 2003                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™