[plug] UMASK explanation sought

Matt Kemner zombie at wasp.net.au
Fri Jun 23 15:58:11 WST 2000


On Fri, 23 Jun 2000, Earnshaw, Mike wrote:

> I read on the UMASK man page that a setting is subtracted from from the
> mode. So in my example umask of 022 would be subtracted from 775 to give
> 753 (rwxr-x-wx),

Also umask is subtracted from 777 for directories and 666 for files, and
applies when you create a new file, so a umask of 022 creates a file with
permissions of 644 (rw-r--r--) and a directory of 755 (rwxr-xr-x)

 - Matt




More information about the plug mailing list