Fix user cache directory permissions
The user cache directory is only used by the maxscale user so only the maxscale user should have access to it.
This commit is contained in:
parent
b796967df8
commit
adb9b5049b
@ -588,7 +588,7 @@ static int mysql_auth_load_users(SERV_LISTENER *port)
|
||||
else
|
||||
{
|
||||
/* Users loaded successfully, save authentication data to file cache */
|
||||
if (mxs_mkdir_all(path, 0777))
|
||||
if (mxs_mkdir_all(path, S_IRWXU))
|
||||
{
|
||||
strcat(path, DBUSERS_FILE);
|
||||
dbusers_save(instance->handle, path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user