|
|
coherent
umask Command umask
Set the file-creation mask
uummaasskk [_m_a_s_k]
The _f_i_l_e-_c_r_e_a_t_i_o_n _m_a_s_k modifies the default mode assigned to each
file upon creation. The mode sets the permissions granted by the
file's owner, plus other important information about a file.
The command uummaasskk sets the default file-creation mask to _m_a_s_k.
_m_a_s_k is usually entered as an octal number prefixed by a zero
digit. If invoked without an argument, uummaasskk prints the current
file-creation mask in octal.
See the Lexicon entries for uummaasskk() and cchhmmoodd for details on file
mode. The shell executes uummaasskk directly.
***** Example *****
Setting _m_a_s_k to octal 022 (i.e., 000 010 010) causes a file
created with mode octal 0666 to actually have permissions of
rw- r-- r--
Setting _m_a_s_k to zero (i.e., 000 000 000) causes a file created
with mode octal 0666 to actually have permissions of
rw- rw- rw-
***** See Also *****
cchhmmoodd, ccoommmmaannddss, kksshh, sshh
COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.