summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2004-03-06 18:15:49 +0000
committerColin Watson <cjwatson@debian.org>2004-03-06 18:15:49 +0000
commit3366e0b9231ace358c27cbfac294fb9696853a68 (patch)
treec1a5f288a15d7d182132bb2bee383844cdeacb0d /debian/postinst
parent2c8ca7776552293cd249d61e4f1343bb1d17a89a (diff)
Privilege separation and PAM are now properly supported together, so remove
both debconf questions related to them and simply set it unconditionally in newly generated sshd_config files (closes: #228838).
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst10
1 files changed, 0 insertions, 10 deletions
diff --git a/debian/postinst b/debian/postinst
index 0d1f3c3ed..4fbe93339 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -110,20 +110,10 @@ HostKey /etc/ssh/ssh_host_dsa_key
110EOF 110EOF
111fi 111fi
112 112
113db_get ssh/privsep_ask
114if [ "$RET" = "false" ]; then
115 cat <<EOF >> /etc/ssh/sshd_config
116#Explicitly set PrivSep off, as requested
117UsePrivilegeSeparation no
118EOF
119else
120 cat <<EOF >> /etc/ssh/sshd_config 113 cat <<EOF >> /etc/ssh/sshd_config
121#Privilege Separation is turned on for security 114#Privilege Separation is turned on for security
122UsePrivilegeSeparation yes 115UsePrivilegeSeparation yes
123EOF
124fi
125 116
126 cat <<EOF >> /etc/ssh/sshd_config
127# Lifetime and size of ephemeral version 1 server key 117# Lifetime and size of ephemeral version 1 server key
128KeyRegenerationInterval 3600 118KeyRegenerationInterval 3600
129ServerKeyBits 768 119ServerKeyBits 768