[RndTbl] How does umask really work?
Bill Reid
billreid at shaw.ca
Wed Feb 9 20:45:17 CST 2005
John Lange wrote:
> The documentation and examples on umask state that you provide a mask
> that is subtracted from rwx (777) access to generate a default access
> for newly created files.
>
> It clearly doesn't work this way.
>
> If you have a umask of 022, newly created files are rw-r--r-- (644). It
> should be rwxr-xr-x (755). The umask is acting like its 033 and indeed
> changing it to 033 has no effect on newly created files.
It depends on what specification is used by the program that is creating
the file. I think the default for most programs is to not set the x flag.
More information about the Roundtable
mailing list