home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM)))) CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- checkpriv - check to see if the current user is privileged
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////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 [
- _p_r_i_v_i_l_e_g_e ] ...
- ////uuuussssrrrr////ssssyyyyssssaaaaddddmmmm////bbbbiiiinnnn////cccchhhheeeecccckkkkpppprrrriiiivvvv [ ----aaaauuuutttthhhh _a_u_t_h-_s_c_h_e_m_e ] [-rrrreeeeaaaassssoooonnnn ] ----aaaauuuutttthhhhOOOOnnnnllllyyyy
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _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
- 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
- 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
- behalf.
-
- _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
- conditions are met:
-
- 1. You are running as root.
-
- 2. There is no root password on the system.
-
- 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
- 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)).
-
- 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
- all privileges.
-
- 5. There is an entry in the _p_r_i_v_i_l_e_g_e(4) database granting the
- requested privilege, and you are not an NIS user. Multiple
- privileges can be specified with one _c_h_e_c_k_p_r_i_v command. There must
- be an entry for each _p_r_i_v_i_l_e_g_e specified.
-
- 6. The ----aaaauuuutttthhhh _a_u_t_h-_s_c_h_e_m_e arguments are provided, and you pass the
- authentication test. If _a_u_t_h-_s_c_h_e_m_e is uuuunnnniiiixxxx, then must you type the
- root password when prompted in order to pass.
-
- Checks 3, 4, and 5 will automatically fail if the pppprrrriiiivvvviiiilllleeeeggggeeeessss
- 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)).
-
- If the ----rrrreeeeaaaassssoooonnnn argument is supplied, then if _c_h_e_c_k_p_r_i_v succeeds it will
- print a number corresponding to the reason that it succeeded. The number
- printed corresponds to the numbering scheme in the preceding paragraph.
-
- The ----aaaauuuutttthhhhOOOOnnnnllllyyyy argument is used to check authentication parameters without
- consulting the privilege database. This is used to verify that
- authentication parameters are correct for operations which are not
- privileges, such as _a_d_d_p_r_i_v(1M).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- 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,
- _c_h_e_c_k_p_r_i_v exits with a non-zero exit status.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM)))) CCCCHHHHEEEECCCCKKKKPPPPRRRRIIIIVVVV((((1111MMMM))))
-
-
-
- FFFFIIIILLLLEEEESSSS
- /var/sysadm/privilege Privilege database
- /var/sysadm/privilegedUsers Privileged users database
- /var/sysadm/defaultPrivileges/* Default privileges
- /etc/config/privileges Privilege configuration flag
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- sysmgr(1M), runpriv(1M), addpriv(1M), rmpriv(1M), adddefpriv(1M),
- rmdefpriv(1M), addprivuser(1M), rmprivuser(1M), chkconfig(1M),
- privilege(4), defaultPrivileges(4), privilegedUsers(4).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-