diff --git a/server/modules/authenticator/MySQLAuth/mysql_auth.c b/server/modules/authenticator/MySQLAuth/mysql_auth.c index 657738bd1..ca1517db9 100644 --- a/server/modules/authenticator/MySQLAuth/mysql_auth.c +++ b/server/modules/authenticator/MySQLAuth/mysql_auth.c @@ -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);