Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

chgrp(1) OSS Shell and Utilities Reference Manual
Environment Variables
The following environment variables affect the execution of the chgrp 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 group ownership of the le or directory named proposals to staff,enter:
chgrp staff proposals
The group access permissions for proposals now apply to staff. See the chmod(1) refer-
ence page for details.
2. To recursively change the group ownership of all OSS les on the local node to the
SUPER group, enter:
chgrp -W NOG -W NOE -R SUPER /
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 NOE and -W NOG ags or the UTILSGE environment vari-
able to exclude objects in the Guardian le system or objects accessible through the Expand pro-
duct.
RELATED INFORMATION
Commands: chmod(1), chown(1), ls(1).
Functions: chmod(2), chown(2).
STANDARDS CONFORMANCE
The -W NOE and -W NOG ags and the UTILSGE environment variable are HP extensions to
the XPG4 Version 2 specication.
240 Hewlett-Packard Company 527188-007