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
c6e1705f8d
commit
b074e7e8c8
@ -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