Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
c
chown(1) chown(1)
RETURN VALUE
chown and chgrp return the following values:
0 Successful completion.
>0 An error condition occurred.
EXAMPLES
The following command changes the owner of the file jokes to sandi:
chown sandi jokes
The following command searches the directory design_notes and changes each file 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 -h option 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
___
___