1UMASK(2) System Calls Manual UMASK(2)
2
3
4
6 umask - set file creation mode mask
7
9 umask(complmode)
10
12 Umask sets a mask used whenever a file is created by creat(2) or
13 mknod(2): the actual mode (see chmod(2)) of the newly-created file is
14 the logical and of the given mode and the complement of the argument.
15 Only the low-order 9 bits of the mask (the protection bits) partici‐
16 pate. In other words, the mask shows the bits to be turned off when
17 files are created.
18
19 The previous value of the mask is returned by the call. The value is
20 initially 0 (no restrictions). The mask is inherited by child pro‐
21 cesses.
22
24 creat(2), mknod(2), chmod(2)
25
27 (umask = 60.)
28 sys umask; complmode
29
30
31
32 UMASK(2)