Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

User Commands (c) chmod(1)
00000001
Permits execute or search by others (the S_IXOTH bit).
Use on Guardian Objects
The chmod command does not work on les in the /G directory. Once a le has been created in
/G, you cannot change its permissions with the chmod command.
To avoid errors when using the chmod command from the root directory (/), use the -W NOG
ag to prevent an attempt to access les in /G.
Environment Variables
The following environment variables affect the execution of the chmod 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 add a type of permission to several les, enter:
chmod g+w chap1 chap2
This command adds write permission for group members to the les chap1 and chap2.
2. To make several permission changes at once, enter:
chmod go-w+x mydir
This command denies group members and others the permission to create or delete les
in the directory mydir (go-w) and allows them to search mydir or use it in a pathname
(go+x). This command is equivalent to the following command sequence:
chmod g-w mydir
chmod o-w mydir
chmod g+x mydir
chmod o+x mydir
3. To permit only the owner to use a shell procedure as a command, enter:
chmod u=rwx,go= cmd
This command gives read, write, and execute permission to the user who owns the le
(u=rwx). It also denies the group and others the permission to access cmd in any way
(go=).
4. To use set-ID modes, enter:
chmod ug+s cmd
When the le cmd is executed, this command causes the effective user and group IDs to
be set to those that own the le cmd. Only the effective IDs associated with the
527188-004 Hewlett-Packard Company 243