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

chmod(1) OSS Shell and Utilities Reference Manual
Restricts le removal (directory).
00000400
Permits read by owner (the S_IRUSR bit).
00000200
Permits write by owner (the S_IWUSR bit).
00000100
Permits execute or search by owner (the S_IXUSR bit).
00000040
Permits read by group (the S_IRGRP bit).
00000020
Permits write by group (the S_IWGRP bit).
00000010
Permits execute or search by group (the S_IXGRP bit).
00000004
Permits read by others (the S_IROTH bit).
00000002
Permits write by others (the S_IWOTH bit).
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.
244 Hewlett-Packard Company 527188-007