


      CCCCHHHHMMMMOOOODDDD((((1111))))                    ((((UUUUNNNNIIIIXXXX 5555....0000))))                   CCCCHHHHMMMMOOOODDDD((((1111))))



      NNNNAAAAMMMMEEEE
           chmod - change mode

      SSSSYYYYNNNNTTTTAAAAXXXX
           cccchhhhmmmmoooodddd mode files

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           The permissions of the named _f_i_l_e_s are changed according to
           _m_o_d_e, which may be absolute or symbolic.  An absolute _m_o_d_e
           is an octal number constructed from the OR of the following
           modes:

                4000      set user ID on execution
                2000      set group ID on execution
                0400      read by owner
                0200      write by owner
                0100      execute (search in directory) by owner
                0070      read, write, execute (search) by group
                0007      read, write, execute (search) by others

           A symbolic _m_o_d_e has the form:

                [ _w_h_o ] _o_p _p_e_r_m_i_s_s_i_o_n [ _o_p _p_e_r_m_i_s_s_i_o_n ]

           The _w_h_o part is a combination of the letters uuuu (for user's
           permissions), gggg (group) and oooo (other).  The letter aaaa stands
           for uuuuggggoooo, the default if _w_h_o is omitted.

           _O_p can be ++++ to add _p_e_r_m_i_s_s_i_o_n to the file's mode, ---- to take
           away _p_e_r_m_i_s_s_i_o_n, or ==== to assign _p_e_r_m_i_s_s_i_o_n absolutely (all
           other bits will be reset).

           _P_e_r_m_i_s_s_i_o_n is any combination of the letters rrrr (read), wwww
           (write), xxxx (execute), ssss (set owner or group ID) and tttt (save
           text); uuuu, gggg, or oooo indicate that _p_e_r_m_i_s_s_i_o_n is to be taken
           from the current mode.  Omitting _p_e_r_m_i_s_s_i_o_n is only useful
           with ==== to take away all permissions.

           Multiple symbolic modes separated by commas may be given.
           Operations are performed in the order specified.  The letter
           ssss is only useful with uuuu or gggg and tttt only works with uuuu.  Only
           the owner of a file (or the super-user) may change its mode.

      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
           The first example denies write permission to others, the
           second makes a file executable:
               chmod o-w file
               chmod +x file

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           ls(1), chmod(2).




      Page 1                                                   (9010-E)






      CCCCHHHHMMMMOOOODDDD((((1111))))                    ((((UUUUNNNNIIIIXXXX 5555....0000))))                   CCCCHHHHMMMMOOOODDDD((((1111))))























































      Page 2                                                   (9010-E)






