summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2004-10-24 14:37:26 +0000
committerColin Watson <cjwatson@debian.org>2004-10-24 14:37:26 +0000
commitf8b5367caf5f5f494b6a1df95ae879b208767d06 (patch)
treeb86a152fbdd558d3365e5897031e5b5bbded7c02
parent1894b7723e2d228b9d75691eeeacfd6e5584e86e (diff)
Preserve /etc/ssh/sshd_config ownership/permissions (closes: #276754).
-rw-r--r--debian/changelog6
-rw-r--r--debian/postinst2
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 918f760d9..5e34d1242 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
1openssh (1:3.8.1p1-8.sarge.2) UNRELEASED; urgency=low
2
3 * Preserve /etc/ssh/sshd_config ownership/permissions (closes: #276754).
4
5 -- Colin Watson <cjwatson@debian.org> Sun, 24 Oct 2004 15:25:05 +0100
6
1openssh (1:3.8.1p1-8.sarge.1) unstable; urgency=high 7openssh (1:3.8.1p1-8.sarge.1) unstable; urgency=high
2 8
3 * If PasswordAuthentication is disabled, then offer to disable 9 * If PasswordAuthentication is disabled, then offer to disable
diff --git a/debian/postinst b/debian/postinst
index 294177193..02fda6c1e 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -53,6 +53,8 @@ set_config_option() {
53 print "\n$option $value\n" unless $done;' \ 53 print "\n$option $value\n" unless $done;' \
54 "$option" "$value" \ 54 "$option" "$value" \
55 < /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new 55 < /etc/ssh/sshd_config > /etc/ssh/sshd_config.dpkg-new
56 chown --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new
57 chmod --reference /etc/ssh/sshd_config /etc/ssh/sshd_config.dpkg-new
56 mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config 58 mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config
57} 59}
58 60