UP PREVIOUS NEXT - -Toolbox -Tecfa Manuel

3-1 Permissions

ls -la Afficher tous les fichiers avec les permissions

Un exemplese trouve Figure 3-2:Sortie de `ls -la'.

id Afficher vôtre "user name" et les groupes auxquels il appartient

chmod Changer les permissions d'accès

Syntaxe: chmod [ugoa] {+-} [rwx] <fichier(s)>

<permissions> = u user's permissions
g group's permissions
o others' permissions
a all permissions (user, group, and other)

Exemple:

(1) chmod a+r *

donne l'access de lecture à tout le monde pour tous les fichiers dans le répertoire courrant

(2) chmod g+w hoho.txt

donne l'access d'écriture (détruire aussi!) au groupe pour le fichier hoho.text

(3) chmod o-w hihi.txt

enlève l'accès d'écriture pour le "monde", (c.a.d. les gens qui ne font partie d'un même groupe)

chmod Syntaxe alternative:

PERMISSION COMMAND

rwxrwxrwx chmod 777 filename

rwxrwxr-x chmod 775 filename

rwxr-xr-x chmod 755 filename

rw-rw-r-- chmod 664 filename

rw-r--r-- chmod 644 filename


UP PREVIOUS NEXT - -Toolbox -Tecfa Manuel