Open System Services System Calls Reference Manual (G06.28+, H06.05+)

System Functions (k - m) lchown(2)
[ENOTDIR] A component of path is not a directory.
[ENXIO] The leset containing the clients current working directory or root directory is
not mounted.
[EOSSNOTRUNNING]
The program attempted an operation on an object in the OSS environment while
a required system process was not running.
[EPERM] The calling process does not have appropriate privileges.
[EROFS] The named le resides on a read-only leset.
For all other error conditions, errno is set to the appropriate Guardian le-system error number.
For more information about a specic Guardian le-system error, see the Guardian Procedure
Errors and Messages Manual.
RELATED INFORMATION
Commands: chgrp(1), chown(1), getacl(1), setacl(1).|
Functions: acl(2), chmod(2), chown(2), fchmod(2), fchown(2), lchmod(2).|
Miscellaneous topics: acl(5).|
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. These features
are affected in the HP implementation:
A process can change the value of the owner ID of a le only if the effective user ID of
the process gives the process appropriate privileges.
Upon successful completion, the set-user-ID attribute (the S_ISUID bit) and the set-
group-ID attribute (the S_ISGID bit) of the le are always cleared.
The error [EINVAL] can be detected.
HP extensions to the XPG4 Version 2 specication are:
To change the le access permissions of a le or directory, the effective user ID of the |
process must match the super ID or the owner of the le, or the effective user ID or one |
of the group afliations for the process must qualify the process for membership in the |
Safeguard SECURITY-OSS-ADMINISTRATOR group.
The errno values [EFAULT], [EFSBAD], [EIO], [ENOROOT], [ENXIO], and
[EOSSNOTRUNNING] can be returned.
527186-007 Hewlett-Packard Company 413