UMASK(1) DOMAIN/IX Reference Manual (SYS5) UMASK(1)
NAME
umask - set file-creation mode mask
USAGE
umask [ ooo ]
DESCRIPTION
Umask sets your file-creation mode mask to ooo. The three
octal digits refer to read/write/execute permissions for
owner, group, and others, respectively. The value of each
specified digit is subtracted from the corresponding
``digit'' specified by the system for the creation of a
file. Refer to creat (2) for more information about file
creation. Also see chmod (1) and umask (2) for further dis-
cussion of file permissions.
If ooo is omitted, the current value of the mask is printed.
Umask is recognized and executed by the Shell.
EXAMPLE
To remove write permission of the group and others, execute
the following command. Files normally created with mode 777
become mode 755; files created with mode 666 become mode
644.
umask 022
RELATED INFORMATION
chmod (1), sh (1), chmod (2), creat (2), umask (2).
Printed 6/10/85 UMASK-1