I saw a code change at work, where the mode values were changed from 777 to 0777 to make nfs setattr work. What is the difference in the 2 values?
If you're passing them to
0777 (octal) == binary
777 (decimal) == binary
|show 1 more comment|
The first bit is used for the sticky bit http://en.wikipedia.org/wiki/Sticky_bit
If you set permission using 4 digits, the first will set or remove this bit.