Chmod 755 and 751
23,851
The bits are groups of three the results are correct, I do not really get the point you misunderstood. 5 is read, execute but the order of rwx does not change. Consider them as switches, they might be on (r/w/x) or off (-). Here again an overview of the values:
7(8) = 111(2) => rwx
5(8) = 101(2) => r-x
1(8) = 001(2) => --x
Related videos on Youtube
Author by
fixer1234
Updated on September 17, 2022Comments
-
fixer1234 over 1 year
Doing chmod 755 on a directory gives me drwxr-xr-x. Should it not give me drwxr-xr-xr since 5 is read,execute?
And Doing chmod 751 on a directory give me drwxr-x--x. Should that not give me drwxr-xr-x?
Kindly explain.