umask(1) CLIX umask(1)
NAME
umask - Sets file-creation mode mask
SYNOPSIS
umask [ooo]
DESCRIPTION
The umask command sets the file-creation mode mask to ooo. The three
octal digits refer to read/write/execute permissions for owner, group, and
others, respectively (see chmod() and umask()). The value of each
specified digit is subtracted from the corresponding ``digit'' specified
by the system for the creation of a file (see creat()). For example,
umask O22 removes the write permission for group and others (files
normally created with mode 777 become mode 755; files created with mode
666 become mode 644).
If ooo is omitted, the current value of the mask is displayed.
The umask command is recognized and executed by the shell.
The umask command can be included in the user's .profile (see profile())
and invoked at login to automatically set the user's permissions on files
or directories created.
EXAMPLES
To display the user's current mask, enter the following:
umask
EXIT VALUES
The umask command exits with a nonzero value if it fails.
RELATED INFORMATION
Commands: chmod(1), sh(1)
Functions: chmod(2), creat(2), umask(2)
Files: profile(4)
2/94 - Intergraph Corporation 1