Permissions question
Hello,
Just starting with Linux and I have a question about permissions. When I run ls on /bin/bash I get the following permissions output: -rwxr-xr-x ....... Why are there 4 letters on the owner's permissions, namely the last "r" which I have put in bold? Since there are only 3 types - r, w and x, what's the point of the second "r" ? Thanks |
That is actually the first permission of the middle set.
rwx | r x | r x owner | group | other |
Oh, I see. So the two dashes don't divide the sets. What's their purpose, then? Is it just to indicate that "w" is not given to group and users?
|
there are 3 letters: r, w, x. letter means it is set, - means it is not set.
So rwx the first group is for the owner, read, write and execute enabled for the second and third group (group and others) r-x read and execute are enabled, write is disabled. http://www.comptechdoc.org/os/linux/..._ugfilesp.html |
correct if the file was just read only by all groups it would be
chmod 444 would look like r--r--r-- Or if it was the opposite chmod 777 would look like rwxrwxrwx |
Perfect, thanks guys!
|
All times are GMT -5. The time now is 03:43 AM. |