I understand it's a mask - but I was referring to umask displaying the current umask - not setting it. Besides, you can't effect the special bits with umask - the range is octal 0-777. Any digits besides the last 3 have to be 0 - or the umask command will complain 'octal number out of range'.
Scott Rohling On Tue, Sep 25, 2012 at 4:51 PM, Ivan Warren <[email protected]> wrote: > On 9/25/2012 8:07 PM, Scott Rohling wrote: > >> True - the value for the special bits only has meaning for chmod to >> actually set those bits for a directory or file -- not umask. So it >> will always be 0 in the context of umask. Scott Rohling >> > > Scott, > > umask is a 'MASK' ! umask gives the bits you do NOT want set ! 077 (or > 0077 - the same) means you want files created as rwx------ (aka 0700 or > the 1 complement of the umask).. So basically, a umask of 077 is > actually conceptually a mask of 07077 (the special bits can only be > altered with chmod(2), not when creating the file through open(2)... > Exception is mkdir(2) which will inherit the group special bit). > > --Ivan > > ------------------------------**------------------------------**---------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/**wlvindex?LINUX-390<http://www.marist.edu/htbin/wlvindex?LINUX-390> > ------------------------------**------------------------------**---------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
