Open System Services System Calls Reference Manual (G06.25+, H06.03+)
chown(2) OSS System Calls Reference Manual
• The path parameter is an empty string.
• The path parameter specifies a file in the Guardian file system (in /G) but
cannot be mapped to a valid Guardian filename.
• The path parameter names a symbolic link, but the file to which it refers
does not exist.
• The path parameter specifies a file on a remote HP NonStop node, but
communication with the remote node has been lost.
[ENOROOT] One of these conditions exists:
• The root fileset of the local node (fileset 0) is not in the STARTED state.
• The current root fileset for the specified file is unavailable. The OSS
name server for the fileset might have failed.
• The specified file is on a remote HP NonStop node, and communication
with the remote name server has been lost.
[ENOTDIR] A component of path 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] The calling process does not have appropriate privileges.
[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.
See the Guardian Procedure Errors and Messages Manual for more information about a specific
Guardian file-system error.
RELATED INFORMATION
Commands: chgrp(1), chown(1).
Functions: chmod(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. These features
are affected in the HP implementation:
• A process can change the value of the owner ID of a file 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 file are always cleared.
• The error [EINVAL] can be detected.
1−20 Hewlett-Packard Company 527186-003