Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (a - d) chmod(2)
[ENOTDIR] A component, other than the last part, of the path parameter is not a directory.
[ENXIO] The fileset containing the client’s 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] One of the following conditions exist:
The effective user ID does not match the user ID of the owner of the file,
or the owner does not have appropriate privileges.
The program attempted an operation on a SEEP-protected fileset. Valid
for J06.15 and later J-series RVUs, and H06.26 and later H-series RVUs.
[EROFS] The named file resides on a read-only fileset.
For all other error conditions, errno is set to the appropriate Guardian file-system error number.
For more information about a specific Guardian file-system error, see the Guardian Procedure
Errors and Messages Manual.
RELATED INFORMATION
Commands: chmod(1), getacl(1), setacl(1).
Functions: acl(2), chown(2), fchmod(2), fchown(2), fcntl(2), getgroups(2), lchmod(2),
lchown(2), mknod(2), open(2), open64(2), read(2), setfilepriv(2), write(2).
Miscellaneous topics: acl(5).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. These features
are affected in the HP implementation:
To change file-access permissions, either the process must have the same effective user
ID as the owner of the file or the process must have an effective user ID of the super ID.
A call to the chmod() function has no effect on the file descriptor for a file that is open at
the time of the call. However, new openers of the file are authenticated by using the new
access permissions that were specified in the call.
HP extensions to the XPG4 Version 2 specification are:
To change the file access permissions of a file or directory, the effective user ID of the
process must match the super ID or the owner of the file, 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], [EINVAL], [ENOROOT], [ENXIO], and
[EOSSNOTRUNNING] can be returned.
527186-023 Hewlett-Packard Company 125