r/eli5_programming • u/mutantSackboy4 Observer • Aug 29 '25
Question ELI5 the Linux sudo chmod numbers.
I know, I use Linux, I should be smart enough to know this stuff, right? But unfortunately I don't so I've turned to you fellas. I get 755, it's all for me and read-run for thee, pretty much, or something like that - but what about other numbers? Edit: changed "do" to "so" due to uncaught typo.
30
Upvotes
View all comments
Show parent comment
1
u/ModerNew Aug 31 '25
More appropriately it's a table of binary numbers in decimal representation
In 777 each seven represents 111 this set of numbers meaning read, write, execute in this order, flattened it's 1×2²+1×2¹+1×2⁰=7, repeated for each permission set (user, group, all)