Created
April 3, 2020 15:52
-
-
Save vnea/3f819056a1171f1ba59f8a7977776a8d to your computer and use it in GitHub Desktop.
Explication permission en octal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
000 -> --- -> 0 -> aucun droit | |
001 -> --x -> 1 -> execution seulement | |
010 -> -w- -> 2 -> écriture seulement | |
011 -> -wx -> 3 -> écriture et execution | |
100 -> r-- -> 4 -> lecture seule | |
101 -> r-x -> 5 -> lecture et execution | |
110 -> rw- -> 6 -> lecture et écriture | |
111 -> rwx -> 7 -> lecture, écriture et execution | |
ensuite faut mettre ça trois fois -> user group other | |
donc si tu veux lecture pour tous c'est 4 donc 0444 (le premier 0 c'est pour qu'ansible sache qu'on est en octal) | |
0444 -> r--r--r-- | |
0644 -> rw-r--r-- | |
… |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment