[admin@localhost ~]$ umask 002
[admin@localhost ~]$ touch titi
[admin@localhost ~]$ ll titi
-rw-rw-r-- 1 admin admin 0 oct 9 10:19 titi
[admin@localhost ~]$ umask 077
[admin@localhost ~]$ touch toto
[admin@localhost ~]$ ll toto
-rw------- 1 admin admin 0 oct 9 10:20 toto
De la doc de la libc : 14.9.7 Assigning File Permissions
---------------------------------
The primitive functions for creating files (for example, `open' or
`mkdir') take a MODE argument, which specifies the file permissions to
give the newly created file. This mode is modified by the process's
"file creation mask", or "umask", before it is used.
# umask
Posté par itstimetogo . En réponse au message Umask ?. Évalué à 4.
[admin@localhost ~]$ touch titi
[admin@localhost ~]$ ll titi
-rw-rw-r-- 1 admin admin 0 oct 9 10:19 titi
[admin@localhost ~]$ umask 077
[admin@localhost ~]$ touch toto
[admin@localhost ~]$ ll toto
-rw------- 1 admin admin 0 oct 9 10:20 toto
De la doc de la libc :
14.9.7 Assigning File Permissions
---------------------------------
The primitive functions for creating files (for example, `open' or
`mkdir') take a MODE argument, which specifies the file permissions to
give the newly created file. This mode is modified by the process's
"file creation mask", or "umask", before it is used.