(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) System Administration :
What's a umask? What's the default umask?
The umask is a set of numbers like 0022. It specifies which permissions to withhold when a directory or file is created. The default umask is set in /etc/profile and /etc/cshrc. For Low and Traditional, it's 0022. For Improved and High, it's 0077. To see what permissions a file or directory will get when created, do the following:
      always start with                    1  7  7  7
      write in the umask                   0  0  2  2
      subtract                           --------------
      equals the directory perms.  -->     1  7  5  5
      which we see as                       drwxr-xr-x
      to get file perms enter              1  1  1  1
      and subtract again                 --------------
      equals the file perms.    ----->     0  6  4  4
      which we see as                       -r-xr--r--

<mschalit@pacbell.net>

[Append to This Answer]
Previous: (Answer) What are the restrictions on login names?
Next: (Answer) What's an environment? What's a .profile or .cshrc?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=153
[Search] [Appearance]
This is a Faq-O-Matic 2.721.