summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-11-24 20:50:52 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-12-01 15:59:38 -0500
commit6a1deabbc1918de34de65595142bbb2895d90ed9 (patch)
tree97a0cc21b93650be52f7572b7e3de2f0bf7b8a3f
parentef79efc0c972e206d3dfa4923608a0aa97522987 (diff)
downloadsssd-6a1deabbc1918de34de65595142bbb2895d90ed9.tar.gz
sssd-6a1deabbc1918de34de65595142bbb2895d90ed9.tar.bz2
sssd-6a1deabbc1918de34de65595142bbb2895d90ed9.zip
Warn visibly about permission problems with the config file
Fixes: #268
-rw-r--r--server/monitor/monitor.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/monitor/monitor.c b/server/monitor/monitor.c
index 7801c60c..65b9475c 100644
--- a/server/monitor/monitor.c
+++ b/server/monitor/monitor.c
@@ -2525,7 +2525,14 @@ int main(int argc, const char *argv[])
/* Parse config file, fail if cannot be done */
ret = load_configuration(tmp_ctx, config_file, &monitor);
- if (ret != EOK) return 4;
+ if (ret != EOK) {
+ if (ret == EIO) {
+ DEBUG(1, ("Cannot read configuration file %s\n", config_file));
+ ERROR("Cannot read config file %s, please check if permissions "
+ "are 0600 and the file is owned by root.root\n", config_file);
+ }
+ return 4;
+ }
/* set up things like debug , signals, daemonization, etc... */
ret = server_setup("sssd", flags, CONFDB_MONITOR_CONF_ENTRY, &main_ctx);