umask only works for the user/group/other bits of the file, not for the special bits so you should never see something like a 1077 returned as a umask you can verify this by setting umask to 1077 , you should get an error As Ivan says octal it usually expressed as O and the number just as hex would use 0x so that first digit simply says it's an octal value you can also use umask -S to see it in the symbolic terms which if you like symbolic form is really nice.
Sandra From: Ivan Warren <[email protected]> To: [email protected] Date: 09/25/2012 12:46 PM Subject: Re: umask curiosity Sent by: Linux on 390 Port <[email protected]> On 9/25/2012 5:22 PM, Smith, Ann (CTO Service Delivery) wrote: > Is there any meaning to the fourth (really first) digit displayed by the > umask command? > It would make sense to display an octal number that can reach up to 0777 as 0077. Remember, a leading 0 is an indication of an octal number, and 9 bits need to be displayed, so umask probably has this a simply printf("%4.4o") - or maybe printf("0%3.3o") - although a look at the source would probably confirm (or invalidate) that assumption. --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/ ---------------------------------------------------------------------- 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/
