Linux File Permission Octal Reference for chmod


Posted on 2014-11-15 in  linux


I used Linux for years without bothering to find out how the chmod numbers worked. Turns out its very simple, and much faster to use than the "human" way of -u, -o, -g.

4 read (r)
2 write (w)
1 execute (x)

Position 1: Owner
Position 2: Group
Position 3: Everyone

So: 640 is Owner=Read (4+2), Group=Read (4), Everyone=None (0)


Leave a Comment:


Blog Search

Some Tags

Programming Is Fun

This is a blog about programming for the sheer joy of it. More...

Contact
github.com/wiseley
twitter.com/mattwiseley