MPE/iX Shell and Utilities Reference Manual, Vol 2

umask(1) MPE/iX Shell and Utilities umask(1)
NAME
umask — get or set the file mode creation mask
SYNOPSIS
umask [–S][mode]
DESCRIPTION
umask sets the file mode creation mask of the invoking process to the given mode. You can
specify the mode in any of the formats recognized by chmod; see chmod(1) for more infor-
mation.
The file mode creation mask (often called the umask) determines the default permissions for
any file created by the process. For example, a file created by the create command has the
permissions specified by the umask unless the create command specifies explicit permis-
sions itself.
Calling umask without a mode argument displays the current umask.
Options
umask accepts the following option:
–S displays the umask in a symbolic form:
u=perms,g=perms,o=perms
giving user, group, and other permissions. Permissions are specified as combinations
of the letters r (read), w (write), and x (execute).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to an invalid command line argument, or invalid mode.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0.
MPE/iX NOTES
For information on how the current MPE/iX implementation may affect the operation of this
utility, see Appendix A, MPE/iX Implementation Considerations.
1-624 Commands and Utilities