Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.10
-
None
-
CentOS
Description
When creating databases and directories by manually invoking mysql_install_db after installing the server and adding a UMASK_DIR environment variable by running the following commands:
UMASK_DIR=0750
|
export UMASK_DIR
|
mysql_install_db
|
the mask is not applied to the mysql database directory:
~# ls -alrth /var/lib/mariadb/
|
total 109M
|
drwxr-xr-x. 25 root root 4.0K Nov 7 12:53 ..
|
-rw-rw---- 1 root root 48M Nov 7 12:53 ib_logfile1
|
drwx------ 2 root root 4.0K Nov 7 12:53 mysql
|
drwxr-x--- 2 root root 20 Nov 7 12:53 performance_schema
|
drwxr-x--- 2 root root 20 Nov 7 12:53 test
|
-rw-rw---- 1 root root 972 Nov 7 12:53 ib_buffer_pool
|
-rw-rw---- 1 root root 48M Nov 7 12:53 ib_logfile0
|
-rw-rw---- 1 root root 12M Nov 7 12:53 ibdata1
|
-rw-rw---- 1 root root 52 Nov 7 12:53 aria_log_control
|
-rw-rw---- 1 root root 16K Nov 7 12:53 aria_log.00000001
|
drwx------ 5 root root 181 Nov 7 12:53 .
|
Attachments
Issue Links
- relates to
-
MDEV-15844 Add umask and umask_dir as server variable
- Needs Feedback
-
MDEV-17637 New systemd-aware script to re-create datadir
- Closed