Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################
- # Etape 1: Explications (chmod ) #
- ##################################
- Explication:
- - / d : Fichier / répertoire (1er caractère)
- r / w / x / l : Lecture / Ecriture / Execution / liens symbolique
- Lettre : 1
- Tiret : 0
- ls -l
- Syntaxe : <Type> <USER> <Group> <Autre> <....>
- Exemple: d rwx rwx rwx 1 drthrax drthrax 4096 avril 15 11:56 Jeux
- 111 111 111 <= Binaire
- 7 7 7 <= Décimale (Chmod)
- #Conversion
- Décimale Binaire
- 0 000
- 1 001
- 2 010
- 3 011
- 4 100
- 5 101
- 6 110
- 7 111
- Binaire : 111-111-111
- Décimale: 7-7-7 (chmod 777)
- ##########
- # Umask #
- ##########
- $ umask
- 022 <= Mode root
- 0002 <= Mode User
- <Valeur Binaire> - <Valeur umask>
- <111 111 111> <= 777
- - <000 010 010> <= Umask root
- -----------------------------------
- <111 101 101> <= root
- 7 5 5 <= root
- <111 111 110> <= 777
- - <000 000 010> <= Umask utilisateur
- ------------------------------
- <111 111 101>
- rwx rwx r-x
- ##########
- # FSTAB #
- ##########
- user/nouser => [Autoriser/ Refuser] Montage & Démontage de Disque
- exec/noexec => [Autoriser / Refuser] Executions de programme
- auto/noauto => [Automatique/Manuel] Montage au démarrage
- ro/rw => Lecture Uniquement / Lecture-Ecriture
- uid= => User_ID cat /etc/passwd | grep $USER (Attention ne pas être en root)
- gid= => Group_ID cat /etc/group | grep $USER (Attention ne pas être en root)
- umask= => Autorisation (taper umask en user pour obtenir son umask)
- iocharset= =>
- blksize= => Taille de bloque du disque dur (sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL)
- x-gvfs-show => Afficher dans l'interface le disque
- x-gvfs-show,user,exec,auto,rw,uid=1000,gid=1000,umask=022
- http://www.generation-linux.fr/index.php?post/2009/02/04/Cours-Linux-%3A-Les-permissions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement