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
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.
In Linux system there are two types permissions are available:
In File permission we set permission on files and folders:
The permissions are:
While in special permission three types of permission are:
In your question you ask what is difference, so there is no any difference between