HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
c
chown(2) chown(2)
[EACCES] Search permission is denied on a component of the path prefix.
[EBADF] fildes is not a valid file descriptor.
[EFAULT] path points outside the allocated address space of the process. The reliable detection
of this error is implementation dependent.
[EINVAL] Either owner or group is greater than or equal to UID_MAX, or is an illegal negative
value.
[ELOOP] Too many symbolic links were encountered in translatingpath.
[ENAMETOOLONG]
A component of path exceeds NAME_MAX bytes while _POSIX_NO_TRUNC is in
effect, or path exceeds PATH_MAX bytes.
[ENOENT] The file named by path does not exist.
[ENOTDIR] A component of the path prefix is not a directory.
[EPERM] The effective user ID is not a user having appropriate privileges and one or more of
the following conditions exist:
• The effective user ID does not match the owner of the file.
• When changing the owner of the file, the owner of the file is not a member of a
privilege group allowing the CHOWN privilege.
• When changing the group of the file, the owner of the file is not a member of a
privilege group allowing the CHOWN privilege and the group number is not in the
current process’s access list.
[EROFS] The named file resides on a read-only file system.
AUTHOR
chown() was developed by AT&T.
fchown() was developed by the University of California, Berkeley.
SEE ALSO
chown(1), setprivgrp(1M), chmod(2), setacl(2), acl(5), aclv(5), limits(5).
STANDARDS CONFORMANCE
chown(): AES, SVID2, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
fchown(): AES, SVID3
HP-UX Release 11i: December 2000 − 2 − Section 2−−33
___
___