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
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to