Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

chmod(1) OSS Shell and Utilities Reference Manual
subprocess that runs cmd are changed. The effective IDs of the shell session remain
unchanged.
This feature allows you to permit restricted access to important les. Suppose the le
cmd has the set-user-ID mode enabled and is owned by a user called dbms. dbms is not
actually a person but might be associated with a database management system. The user
betty does not have permission to access any of dbmss data les. However, she does
have permission to execute cmd. When she does so, her effective user ID is temporarily
changed to dbms, so that the cmd program can access the data les owned by dbms.
This way betty can use cmd to access the data les, but she cannot accidentally damage
them with the standard shell commands.
5. To use the absolute mode form of the chmod command, enter:
chmod 644 text
This command sets read and write permission for the owner, and it sets read-only mode
for the group and all others.
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.
RELATED INFORMATION
Commands: chgrp(1), chown(1), ls(1), sh(1).
STANDARDS CONFORMANCE
The -W NOG and -W NOE ags and the UTILSGE environment variable are HP extensions to
the XPG4 Version 2 specication.
244 Hewlett-Packard Company 527188-003