Pagina 1 di 1
comando umask
Inviato: lunedì 24 gennaio 2011, 23:19
da durzino
Salve ragazzi dando da shell umask mi appare 0022 dunque per quello che ho capito dovrebbe significare che ogni file o directory creati dovrebbe avere permessi del tipo :
owner : tutti
group: tutti tranne scrittura
altri : come sopra
Il fatto è che creando un file qualsiasi i valori di default sono:
rw-r--r--
Perchè questa incongruenza?
Re: comando umask
Inviato: martedì 25 gennaio 2011, 10:07
da steff
Dov'è l'incongruenza? E' esattamente come dici: modificabili per te, solo leggibili per tutti altri.
Re: comando umask
Inviato: martedì 25 gennaio 2011, 10:09
da vaillant
Cito dal manuale
The typical default value for the process umask is S_IWGRP | S_IWOTH
(octal 022). In the usual case where the mode argument to open(2) is
specified as:
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
(octal 0666) when creating a new file, the permissions on the resulting
file will be:
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
(because 0666 & ~022 = 0644; i.e., rw-r--r--).
Re: comando umask
Inviato: martedì 25 gennaio 2011, 10:44
da durzino
Infatti si, mi son confuso perchè non vedevo la possiblità di esecuzione !
Ma essendo un file di testo è normale che non sia data!
Sorry