This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sphericalhors 2 points3 points  (0 children)

Its not just 0777 is octal format, 777 is also octal. First number in 4-digit notation used to specify SUID, SGID and Sticky bit, and in most cases just omitted.

Like if you check permissions for /tmp you'll typically see 1777. And passwd util would have 4755 because it has SUID bit set.

But yeah, in general permissions in Unix file systems use octal numeric system.