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>
|