diff options
-rw-r--r-- | src/monitor/monitor.c | 3 | ||||
-rw-r--r-- | src/responder/ssh/sshsrv.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index d09aeba90..0dea32721 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -1066,7 +1066,8 @@ static bool svc_supported_as_nonroot(const char *svc_name) || (strcmp(svc_name, "pam") == 0) || (strcmp(svc_name, "autofs") == 0) || (strcmp(svc_name, "pac") == 0) - || (strcmp(svc_name, "sudo") == 0)) { + || (strcmp(svc_name, "sudo") == 0) + || (strcmp(svc_name, "ssh") == 0)) { return true; } return false; diff --git a/src/responder/ssh/sshsrv.c b/src/responder/ssh/sshsrv.c index b154ee1ba..b1969b49d 100644 --- a/src/responder/ssh/sshsrv.c +++ b/src/responder/ssh/sshsrv.c @@ -215,7 +215,8 @@ int main(int argc, const char *argv[]) /* set up things like debug, signals, daemonization, etc... */ debug_log_file = "sssd_ssh"; - ret = server_setup("sssd[ssh]", 0, 0, 0, CONFDB_SSH_CONF_ENTRY, &main_ctx); + ret = server_setup("sssd[ssh]", 0, uid, gid, + CONFDB_SSH_CONF_ENTRY, &main_ctx); if (ret != EOK) { return 2; } |