Sous linux en créant un repertoire avec la commande chmod il est possible de spécifier les permissions, exemple:
mkdir -m 777 test
donne avec la command "ls -l":
drwxr-xr-x test
Rappel sur les permissions:
| # | Permission | rwx |
|---|---|---|
| 7 | read, write and execute | rwx |
| 6 | read and write | rw- |
| 5 | read and execute | r-x |
| 4 | read only | r-- |
| 3 | write and execute | -wx |
| 2 | write only | -w- |
| 1 | execute only | --x |
| 0 | none | --- |
Références
| Liens | Site |
|---|---|
| How to create a directory and give permission in single command | stackoverflow |
| chmod | wikipedia |
