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:
Markus Mäkelä 2017-02-04 02:49:11 +02:00
parent c6e1705f8d
commit b074e7e8c8

View File

@ -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);