[MDEV-17640] UMASK_DIR configuration for mysql_install_db is not applied to mysql database. Created: 2018-11-07 Updated: 2020-08-25 Resolved: 2019-04-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Scripts & Clients |
| Affects Version/s: | 10.3.10 |
| Fix Version/s: | 10.2.24, 10.1.39, 10.3.15, 10.4.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Juan | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS |
||
| Issue Links: |
|
||||||||||||
| 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:
the mask is not applied to the mysql database directory:
|
| Comments |
| Comment by Elena Stepanova [ 2018-11-07 ] |
|
I don't think we claim anywhere in documentation that mysql_install_db (or any binaries or scripts other than mysqld and mysqld_safe) use UMASK_DIR variable. However, it does sound like a valid request. The script can very well be made aware of an environment variable, and if we choose on legacy reason to create mysql directory within the script, it should obey the same rules as the rest of the datadir. Assigning to serg to decide whether it should be treated as a bug or a feature request, since the procedures are essentially different. |
| Comment by Sergei Golubchik [ 2018-11-11 ] |
|
Let's treat it like a bug |