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

System Functions (f - i) fchmod(2)
The specied le is on a remote node, and communication with the
remote name server has been lost.
[EOSSNOTRUNNING]
The program attempted an operation on an object in the OSS environment while
a required system process was not running.
[EPERM] The effective user ID does not match the ID of the owner of the le, and the cal-
ling process does not have super ID privilege.
[EROFS] The le referred to by ledes 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: chmod(1), getacl(1), setacl(1).|
Functions: acl(2), chmod(2), chown(2), fcntl(2), fchown(2), getgroups(2), lchmod(2),|
lchown(2), mknod(2), open(2), open64(2), read(2), write(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:
To change le-access permissions, either the process must have the same effective user
ID as the owner of the le or the process must have an effective user ID of the super ID.
A call to the fchmod() function has no effect on the le descriptor for a le that is open
at the time of the call. However, new openers of the le are authenticated by using the
new access permissions that were specied in the call.
The errors [EINTR] and [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 [EIO], [EFSBAD], [ENOROOT], and [EOSSNOTRUNNING] can be
returned.
527186-007 Hewlett-Packard Company 35