1993.1.18

SUBJECT: File »ý¼º½Ã permission ÇÒ´çÇÏ´Â "umask" 

DESCRIPTION:

* ¸ðµç UNIX systemµéÀº fileÀ» »õ·ÎÀÌ »ý¼ºÇÒ ¶§
  default permission °ªÀ» settingÇÑ´Ù.
* ÀÌ·¯ÇÑ 'permission set'Àº 'file creation mask'·Î ±ÔÁ¤µÈ´Ù.
* SunOS 4.1¿¡¼± "022"¶ó´Â default file creation mask¸¦ »ç¿ëÇÑ´Ù.
  ÀÌ´Â booting½Ã init daemonÀÌ settingÇÑ´Ù.

  +---------+----------+-------------------------------------+
  |  Octal  |  Binary  |             Permissions             |
  +---------+----------+------------------+------------------+
                       |      Files       |    Directories   |
  +---------+----------+------------------+------------------+
  |    0    |    000   |       rw-        |       rwx        | 
  |    1    |    001   |       rw-        |       rw-        | 
  |    2    |    010   |       r--        |       r-x        | 
  |    3    |    011   |       r--        |       r--        | 
  |    4    |    100   |       -w-        |       -wx        | 
  |    5    |    101   |       -w-        |       -w-        | 
  |    6    |    110   |       ---        |       --x        | 
  |    7    |    111   |       ---        |       ---        | 
  +---------+----------+------------------+------------------+

* ¾ö°ÝÇÑ security°¡ ¿ä±¸µÇ´Â site¶ó¸é 
  default file creation mask¸¦ 77·Î µÎ¸é µÈ´Ù.

* Exam)
  % umask 037
  % umask
  37
  % touch test
  % ls -l test
  -rw-r-----  1 woo         0   Jan 18 16:20 test
  % mkdir testdir
  % ls -ld testdir
  drwxr-----  2 woo         512 Jan 18 16:25 testdir













Revision History
Created        on Jan. 18 ,1993