rex:DbPs:50000:10000:Xavier Redon:/users/rex:/bin/bash
users::10000:
Droit | Pour un fichier | Pour un répertoire |
r | lecture possible | liste possible |
w | écriture possible | modification possible |
x | exécution possible | traversée possible |
-rw-r--r-- 1 root root 532022 Sep 30 20:08 vmlinuz drwxr-xr-x 18 root root 1024 Oct 1 1995 var drwxrwxrwt 6 root root 2048 Oct 21 15:35 tmp
$ chown rex:users /users/rex/telephones
$ chgrp daemon /users/rex/telephones
$ chmod u=rw,g=rw,o= telephones ; ls -l telephone -rw-rw---- 1 rex users 94208 Oct 21 12:24 telephone $ chmod 660 telephones ; ls -l telephone -rw-rw---- 1 rex users 94208 Oct 21 12:24 telephone $ chmod o+rw telephones ; ls -l telephone -rw-rw-rw- 1 rex users 94208 Oct 21 12:24 telephone
$ umask -S 022 u=rwx,g=rx,o=rx $ touch toto ; ls -l toto -rw-r--r-- 1 rex users 0 Oct 21 16:02 toto