diff options
author | Colin Watson <cjwatson@debian.org> | 2006-11-20 15:00:06 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2006-11-20 15:00:06 +0000 |
commit | ce57532d1450edba31c7a98937966a857cc2c397 (patch) | |
tree | eb5f98bc0e200ae544a8c5831f4173f4063f6260 | |
parent | 80527565530dff2920aa8be3db046fa9d3921c89 (diff) |
* Ignore errors from usermod when changing sshd'\''s shell, since it will
fail if the sshd user is not local (closes: #398436).
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/openssh-server.postinst | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 540a91235..b01b5cab7 100644 --- a/debian/changelog +++ b/debian/changelog | |||
@@ -1,3 +1,10 @@ | |||
1 | openssh (1:4.3p2-7) UNRELEASED; urgency=low | ||
2 | |||
3 | * Ignore errors from usermod when changing sshd's shell, since it will | ||
4 | fail if the sshd user is not local (closes: #398436). | ||
5 | |||
6 | -- Colin Watson <cjwatson@debian.org> Mon, 20 Nov 2006 14:57:16 +0000 | ||
7 | |||
1 | openssh (1:4.3p2-6) unstable; urgency=low | 8 | openssh (1:4.3p2-6) unstable; urgency=low |
2 | 9 | ||
3 | * Acknowledge NMU (thanks, Manoj; closes: #394795). | 10 | * Acknowledge NMU (thanks, Manoj; closes: #394795). |
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index f7240d1cf..bd14ba66e 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -291,7 +291,7 @@ fix_statoverride() { | |||
291 | 291 | ||
292 | fix_sshd_shell() { | 292 | fix_sshd_shell() { |
293 | if getent passwd sshd | grep -q ':/bin/false$'; then | 293 | if getent passwd sshd | grep -q ':/bin/false$'; then |
294 | usermod -s /usr/sbin/nologin sshd | 294 | usermod -s /usr/sbin/nologin sshd || true |
295 | fi | 295 | fi |
296 | } | 296 | } |
297 | 297 | ||