home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / sysadm / checkpriv.z / checkpriv
Encoding:
Text File  |  2002-10-03  |  4.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM))))                                                    CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      checkpriv - check to see if the current user is privileged
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////bbbbiiiinnnn////cccchhhheeeecccckkkkpppprrrriiiivvvv [ ----aaaauuuutttthhhh _a_u_t_h-_s_c_h_e_m_e ] [-rrrreeeeaaaassssoooonnnn ] _p_r_i_v_i_l_e_g_e [
  13.      _p_r_i_v_i_l_e_g_e ] ...
  14.      ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////bbbbiiiinnnn////cccchhhheeeecccckkkkpppprrrriiiivvvv [ ----aaaauuuutttthhhh _a_u_t_h-_s_c_h_e_m_e ] [-rrrreeeeaaaassssoooonnnn ] ----aaaauuuutttthhhhOOOOnnnnllllyyyy
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _c_h_e_c_k_p_r_i_v checks to see if you have been granted _p_r_i_v_i_l_e_g_e.  If _c_h_e_c_k_p_r_i_v
  18.      indicates that you do have _p_r_i_v_i_l_e_g_e, then _r_u_n_p_r_i_v(1M) would run the
  19.      command _p_r_i_v_i_l_e_g_e found in the directory /_u_s_r/_s_y_s_a_d_m/_p_r_i_v_b_i_n on your
  20.      behalf.
  21.  
  22.      _c_h_e_c_k_p_r_i_v indicates that you have _p_r_i_v_i_l_e_g_e if any one of the following
  23.      conditions are met:
  24.  
  25.      1.   You are running as root.
  26.  
  27.      2.   There is no root password on the system.
  28.  
  29.      3.   The file /_v_a_r/_s_y_s_a_d_m/_d_e_f_a_u_l_t_P_r_i_v_i_l_e_g_e_s/pppprrrriiiivvvviiiilllleeeeggggeeee exists and has the
  30.           string "on" as its first line (see _d_e_f_a_u_l_t_P_r_i_v_i_l_e_g_e_s(4)).
  31.  
  32.      4.   There is an entry in the _p_r_i_v_i_l_e_g_e_d_U_s_e_r_s(4) database granting you
  33.           all privileges.
  34.  
  35.      5.   There is an entry in the _p_r_i_v_i_l_e_g_e(4) database granting the
  36.           requested privilege, and you are not an NIS user.  Multiple
  37.           privileges can be specified with one _c_h_e_c_k_p_r_i_v command.  There must
  38.           be an entry for each _p_r_i_v_i_l_e_g_e specified.
  39.  
  40.      6.   The ----aaaauuuutttthhhh _a_u_t_h-_s_c_h_e_m_e arguments are provided, and you pass the
  41.           authentication test.  If _a_u_t_h-_s_c_h_e_m_e is uuuunnnniiiixxxx, then must you type the
  42.           root password when prompted in order to pass.
  43.  
  44.      Checks 3, 4, and 5 will automatically fail if the pppprrrriiiivvvviiiilllleeeeggggeeeessss
  45.      configuration file in /_e_t_c/_c_o_n_f_i_g is not oooonnnn (see _c_h_k_c_o_n_f_i_g(1M)).
  46.  
  47.      If the ----rrrreeeeaaaassssoooonnnn argument is supplied, then if _c_h_e_c_k_p_r_i_v succeeds it will
  48.      print a number corresponding to the reason that it succeeded.  The number
  49.      printed corresponds to the numbering scheme in the preceding paragraph.
  50.  
  51.      The ----aaaauuuutttthhhhOOOOnnnnllllyyyy argument is used to check authentication parameters without
  52.      consulting the privilege database.  This is used to verify that
  53.      authentication parameters are correct for operations which are not
  54.      privileges, such as _a_d_d_p_r_i_v(1M).
  55.  
  56. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  57.      If you have _p_r_i_v_i_l_e_g_e, _c_h_e_c_k_p_r_i_v exits with a status of 0.  Otherwise,
  58.      _c_h_e_c_k_p_r_i_v exits with a non-zero exit status.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM))))                                                    CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM))))
  71.  
  72.  
  73.  
  74. FFFFIIIILLLLEEEESSSS
  75.      /var/sysadm/privilege               Privilege database
  76.      /var/sysadm/privilegedUsers         Privileged users database
  77.      /var/sysadm/defaultPrivileges/*     Default privileges
  78.      /etc/config/privileges              Privilege configuration flag
  79.  
  80. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  81.      sysmgr(1M), runpriv(1M), addpriv(1M), rmpriv(1M), adddefpriv(1M),
  82.      rmdefpriv(1M), addprivuser(1M), rmprivuser(1M), chkconfig(1M),
  83.      privilege(4), defaultPrivileges(4), privilegedUsers(4).
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.