Print this page
    
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/man/man1/pfexec.1.man.txt
          +++ new/usr/src/man/man1/pfexec.1.man.txt
   1    1  PFEXEC(1)                        User Commands                       PFEXEC(1)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         pfexec, pfsh, pfcsh, pfksh - execute a command in a profile
   7    7  
   8    8  SYNOPSIS
   9    9         /usr/bin/pfexec command
  10   10  
  11   11  
  12   12         /usr/bin/pfexec -P privspec command [ arg ]...
  13   13  
  14   14  
  15   15         /usr/bin/pfsh [ options ] [ argument ]...
  16   16  
  17   17  
  18   18         /usr/bin/pfcsh [ options ] [ argument ]...
  19   19  
  20   20  
  21   21         /usr/bin/pfksh [ options ] [ argument ]...
  22   22  
  23   23  
  24   24  DESCRIPTION
  25   25         The pfexec program is used to execute commands with the attributes
  26   26         specified by the user's profiles in the exec_attr(4) database. It is
  27   27         invoked by the profile shells, pfsh, pfcsh, and pfksh which are linked
  28   28         to the Bourne shell, C shell, and Korn shell, respectively.
  29   29  
  30   30  
  31   31         Profiles are searched in the order specified in the user's entry in the
  32   32         user_attr(4) database. If the same command appears in more than one
  33   33         profile, the profile shell uses the first matching entry.
  34   34  
  35   35  
  36   36         The second form, pfexec -P privspec, allows a user to obtain the
  37   37         additional privileges awarded to the user's profiles in prof_attr(4).
  38   38         The privileges specification on the commands line is parsed using
  39   39         priv_str_to_set(3C). The resulting privileges are intersected with the
  40   40         union of the privileges specified using the "privs" keyword in
  41   41         prof_attr(4) for all the user's profiles and added to the inheritable
  42   42         set before executing the command.
  43   43  
  44   44  
  45   45         For pfexec to function correctly, the pfexecd daemon must be running in
  46   46         the current zone. This is normally managed by the
  47   47         "svc:/system/pfexec:default" SMF service (see smf(5)).
  48   48  
  49   49  USAGE
  50   50         pfexec is used to execute commands with predefined process attributes,
  51   51         such as specific user or group IDs.
  52   52  
  53   53  
  54   54         Refer to the sh(1), csh(1), and ksh(1) man pages for complete usage
  55   55         descriptions of the profile shells.
  56   56  
  57   57  EXAMPLES
  58   58         Example 1 Obtaining additional user privileges
  59   59  
  60   60           example% pfexec -P all chown user file
  61   61  
  62   62  
  63   63  
  64   64  
  65   65         This command runs chown user file with all privileges assigned to the
  66   66         current user, not necessarily all privileges.
  67   67  
  68   68  
  69   69  EXIT STATUS
  70   70         The following exit values are returned:
  71   71  
  72   72         0
  73   73               Successful completion.
  74   74  
  75   75  
  76   76         1
  77   77               An error occurred.
  78   78  
  79   79  
  80   80  SEE ALSO
  81   81         csh(1), ksh(1), profiles(1), sh(1), exec_attr(4), prof_attr(4),
  82   82         user_attr(4), attributes(5), smf(5)
  83   83  
  84   84  
  85   85  
  86   86                                   March 3, 2003                       PFEXEC(1)
  
    | 
      ↓ open down ↓ | 
    86 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX