Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
chown(1) OSS Shell and Utilities Reference Manual
Access Control Lists (ACLs) |
A user can use the ACL for a file to allow or deny specific individuals and groups access to a file. |
When you use the chown() function with ACLs, if the new owner and/or group of a file have |
optional ACL entries corresponding to user:uid:perm or group:gid:perm in the ACL for a file, |
those entries remain in the ACL but no longer have any effect because they are superseded by the |
user::perm or group::perm entries in the ACL. |
ACLs are not supported for symbolic links. |
For more information about ACLs, see the acl(5) reference page.
Environment Variables
The following environment variables affect the execution of the chown command:
UTILSGE Specifies that HP extensions to the root directory should be omitted when the ini-
tial directory is root and a recursive operation occurs in an OSS shell command.
Application programs that test this variable might also honor its settings.
The UTILSGE value can be any of the following:
NOE Omit the /E directory.
NOG Omit the /G directory.
NOG:NOE Omit both the /G and /E directories.
The effect of assigning a value to the UTILSGE environment variable is the
same as specifying the -W NOG or -W NOE flag in the command.
EXAMPLES
1. To change the owner of the file program.c,tosteffan enter:
chown steffan program.c
The user access permissions for program.c now apply to steffan. As the owner, steffan
can use the chmod command to permit or deny the other users access to program.c.
(See the chmod(1) reference page for details.)
2. To recursively change the owner of all OSS files on the local node to the username
GROUP1.USER1 without affecting local Guardian files, enter:
chown -W NOG -W NOE -R GROUP1.USER1 /
or
export UTILSGE=NOG:NOE
chown -R GROUP1.USER1 /
NOTES
Because /G and /E both appear in your local root directory, you should be very careful when
using OSS shell commands on or from the root directory. OSS shell commands that perform
recursive actions make no distinction between Guardian and OSS files or between local and
remote files. You can use the -W NOG and -W NOE flags or the UTILSGE environment vari-
able to exclude objects in the Guardian file system or objects accessible through the Expand pro-
duct.
2−48 Hewlett-Packard Company 527188-007