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 b796967df8
commit adb9b5049b

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