c

chown(1)

chown(1)

RETURN VALUE

chown and chgrp return the following values:

0Successful completion.

>0 An error condition occurred.

EXAMPLES

The following command changes the owner of the ®le jokes to sandi:

chown sandi jokes

The following command searches the directory design_notes and changes each ®le in that directory to owner mark and group users:

chown -R mark:users design_notes

WARNINGS

The default operation of chown and chgrp for symbolic links has changed as of HP-UX release 10.0. Use the -hoption to get the former default operation.

FILES

/etc/group

/etc/passwd

SEE ALSO

chmod(1), setprivgrp(1M), chown(2), group(4), passwd(4), acl(5), aclv(5).

STANDARDS CONFORMANCE

chown: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

chgrp: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

Section 188

− 2 −

HP-UX Release 11i: December 2000