Specificare i permessi per le directory dei dati e le tabelle
Stai visualizzando una vecchia versione di questo article. Visualizza
la versione più recente.
Per default MariaDB utilizza le seguenti modalità per creare i file e le directory.
Modalità per | Modalità predefinita | Variabile |
---|---|---|
File | 0660 (uguale a -rw-rw----) | UMASK |
Directory | 0700 (uguale a drwx------) | UMASK_DIR |
Impostando le variabili di ambiente prima di avviare mysqld
o mysqld_safe
, è possibile specificare la modalità per i file e le directory.
Note that the environment variables are modes specified in octal and OR:de with the default value (as the default value is the minimum value needed for mysqld to work).
In other words, if you would do in the shell:
set UMASK=001 export UMASK
mysqld
would use the mode 0661
when creating new files.
Commenti
Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.