From adb9b5049be4fc18a7e191f8b7d9b6b19da85fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sat, 4 Feb 2017 02:49:11 +0200 Subject: [PATCH] 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. --- server/modules/authenticator/MySQLAuth/mysql_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);