Which Linux file access mode below corresponds to the numeric mode 750?
- rwxrwxrwx
- rw-r--r--
- rwxr-x---
- r-xr-----
EXPLANATION
Each octal digit corresponds to the three bits for that access type, in order. The read, write, and execute bits are the 4, 2, and 1 bit respectively.The first digit (7) is for the file owner ("user"), and is the sum of all three bits: read (4) + write (2) + execute (1).
The second digit (5) for the owning group is read (4) + execute (1).
The final digit is zero, meaning no access for "other" users.
Wikipedia page on Unix file modes; Online permission calculator
0 comments:
Post a Comment