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 le to allow or deny specic individuals and groups access to a le. |
When you use the chown() function with ACLs, if the new owner and/or group of a le have |
optional ACL entries corresponding to user:uid:perm or group:gid:perm in the ACL for a le, |
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 Species 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 ag in the command.
EXAMPLES
1. To change the owner of the le 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 les on the local node to the username
GROUP1.USER1 without affecting local Guardian les, 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 les or between local and
remote les. You can use the -W NOG and -W NOE ags or the UTILSGE environment vari-
able to exclude objects in the Guardian le system or objects accessible through the Expand pro-
duct.
248 Hewlett-Packard Company 527188-007