All pages
Powered by GitBook
1 of 1

Loading...

Specifying Permissions for Schema (Data) Directories and Tables

Explains default file permissions for data directories and how to customize them using `UMASK` and `UMASK_DIR` environment variables.

Default File Permissions

By default MariaDB uses the following permissions for files and directories:

Object Type
Default Mode
Default Permissions

Configuring File Permissions with Environment Variables

You can configure MariaDB to use different permissions for files and directories by setting the following before you start the server:

Object Type
Environment Variable

In other words, if you would run the following in a shell:

These environment variables do not set the umask. They set the default file system permissions. See for more information.

Configuring File Permissions With systemd

If your server is started by , then there is a specific way to configure the umask. See for more information.

This page is licensed: CC BY-SA / Gnu FDL

Files

0660

-rw-rw----

Directories

0700

drwx------

Files

UMASK

Directories

UMASK_DIR

environment variables
MDEV-23058
systemd
Systemd: Configuring the umask
export UMASK=0640
export UMASK_DIR=0750