Print this page
OS-5440 pfexec and the case of the missing error message
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/pfexec.1.man.txt
          +++ new/usr/src/man/man1/pfexec.1.man.txt
↓ open down ↓ 33 lines elided ↑ open up ↑
  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 +
       45 +       For pfexec to function correctly, the pfexecd daemon must be running in
       46 +       the current zone. This is normally managed by the
       47 +       "svc:/system/pfexec:default" SMF service (see smf(5)).
       48 +
  44   49  USAGE
  45   50         pfexec is used to execute commands with predefined process attributes,
  46   51         such as specific user or group IDs.
  47   52  
  48   53  
  49   54         Refer to the sh(1), csh(1), and ksh(1) man pages for complete usage
  50   55         descriptions of the profile shells.
  51   56  
  52   57  EXAMPLES
  53   58         Example 1 Obtaining additional user privileges
↓ open down ↓ 13 lines elided ↑ open up ↑
  67   72         0
  68   73               Successful completion.
  69   74  
  70   75  
  71   76         1
  72   77               An error occurred.
  73   78  
  74   79  
  75   80  SEE ALSO
  76   81         csh(1), ksh(1), profiles(1), sh(1), exec_attr(4), prof_attr(4),
  77      -       user_attr(4), attributes(5)
       82 +       user_attr(4), attributes(5), smf(5)
  78   83  
  79   84  
  80   85  
  81   86                                   March 3, 2003                       PFEXEC(1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX