From 8eb0444ab85797de2c94a3130234fc23f48a354d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 8 Jul 2008 07:24:28 +0000 Subject: [PATCH] lshd: Explicitly pass all options to the daemon. svn path=/nixos/trunk/; revision=12319 --- upstart-jobs/lshd.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upstart-jobs/lshd.nix b/upstart-jobs/lshd.nix index b85eeb038c7..d9ff79a90b4 100644 --- a/upstart-jobs/lshd.nix +++ b/upstart-jobs/lshd.nix @@ -37,11 +37,11 @@ respawn ${lsh}/sbin/lshd --daemonic \ interfaces))} \ -h "${hostKey}" \ ${if !syslog then "--no-syslog" else ""} \ - ${if !passwordAuthentication then "--no-password" else ""} \ - ${if !publicKeyAuthentication then "--no-publickey" else ""} \ - ${if rootLogin then "--root-login" else ""} \ + ${if passwordAuthentication then "--password" else "--no-password" } \ + ${if publicKeyAuthentication then "--publickey" else "--no-publickey" } \ + ${if rootLogin then "--root-login" else "--no-root-login" } \ ${if loginShell != null then "--login-shell=\"${loginShell}\"" else "" } \ - ${if srpKeyExchange then "--srp-keyexchange" else "" } \ + ${if srpKeyExchange then "--srp-keyexchange" else "--no-srp-keyexchange" } \ ${if !tcpForwarding then "--no-tcpip-forward" else "--tcpip-forward"} \ ${if x11Forwarding then "--x11-forward" else "--no-x11-forward" } \ --subsystems=${concatStringsSep ","