diff options
author | Colin Watson <cjwatson@debian.org> | 2004-03-06 18:15:49 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-03-06 18:15:49 +0000 |
commit | 3366e0b9231ace358c27cbfac294fb9696853a68 (patch) | |
tree | c1a5f288a15d7d182132bb2bee383844cdeacb0d /debian/postinst | |
parent | 2c8ca7776552293cd249d61e4f1343bb1d17a89a (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/postinst | 10 |
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 | |||
110 | EOF | 110 | EOF |
111 | fi | 111 | fi |
112 | 112 | ||
113 | db_get ssh/privsep_ask | ||
114 | if [ "$RET" = "false" ]; then | ||
115 | cat <<EOF >> /etc/ssh/sshd_config | ||
116 | #Explicitly set PrivSep off, as requested | ||
117 | UsePrivilegeSeparation no | ||
118 | EOF | ||
119 | else | ||
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 |
122 | UsePrivilegeSeparation yes | 115 | UsePrivilegeSeparation yes |
123 | EOF | ||
124 | fi | ||
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 |
128 | KeyRegenerationInterval 3600 | 118 | KeyRegenerationInterval 3600 |
129 | ServerKeyBits 768 | 119 | ServerKeyBits 768 |