


      CCCCHHHHOOOOWWWWNNNN((((2222))))                    ((((UUUUNNNNIIIIXXXX 5555....0000))))                   CCCCHHHHOOOOWWWWNNNN((((2222))))



      NNNNAAAAMMMMEEEE
           chown - change owner and group of a file

      SSSSYYYYNNNNTTTTAAAAXXXX
           iiiinnnntttt cccchhhhoooowwwwnnnn ((((ppppaaaatttthhhh,,,, oooowwwwnnnneeeerrrr,,,, ggggrrrroooouuuupppp))))
           cccchhhhaaaarrrr ****ppppaaaatttthhhh;;;;
           iiiinnnntttt oooowwwwnnnneeeerrrr,,,, ggggrrrroooouuuupppp;;;;

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _P_a_t_h points to a path name naming a file.  The owner ID and
           group ID of the named file are set to the numeric values
           contained in _o_w_n_e_r and _g_r_o_u_p respectively.

           Only processes with effective user ID equal to the file
           owner or super-user may change the ownership of a file.

           If _c_h_o_w_n is invoked by other than the super-user, the set-
           user-ID and set-group-ID bits of the file mode, 04000 and
           02000 respectively, will be cleared.

           _C_h_o_w_n will fail and the owner and group of the named file
           will remain unchanged if one or more of the following are
           true:

                A component of the path prefix is not a directory.
                [ENOTDIR]

                The named file does not exist.  [ENOENT]

                Search permission is denied on a component of the path
                prefix.  [EACCES]

                The effective user ID does not match the owner of the
                file and the effective user ID is not super-user.
                [EPERM]

                The named file resides on a read-only file system.
                [EROFS]

                _P_a_t_h points outside the process's allocated address
                space.  [EFAULT]

      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
           Upon successful completion, a value of 0 is returned.
           Otherwise, a value of -1 is returned and _e_r_r_n_o is set to
           indicate the error.

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           chmod(2).






      Page 1                                                   (9010-E)



