From 0df858e26420bc6fb49819572694fced6791d414 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
Date: Thu, 7 Jul 2016 15:43:11 +0200
Subject: [PATCH 03/18] sssctl: config-check access check report
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Improve output when access check error
is detected by sssctl config-check command.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 9dc66cb6b96a885f7272a3c4aa6a44d60cdce82c)
---
src/tools/sssctl/sssctl_config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/tools/sssctl/sssctl_config.c b/src/tools/sssctl/sssctl_config.c
index fc13582accd63f58c9d8bce59c4d6e898a96b170..4f6dbcdd7d04183c65b6613efbe5ab95df19e2c7 100644
--- a/src/tools/sssctl/sssctl_config.c
+++ b/src/tools/sssctl/sssctl_config.c
@@ -68,7 +68,8 @@ errno_t sssctl_config_check(struct sss_cmdline *cmdline,
/* Check the file permissions */
ret = sss_ini_config_access_check(init_data);
if (ret != EOK) {
- printf(_("Access check on sssd.conf file failed.\n"));
+ printf(_("File ownership and permissions check failed. "
+ "Expected root:root and 0600.\n"));
ret = EPERM;
goto done;
}
--
2.4.11