[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#244829: ssh.postinst may corrupt sshd_config that does not end with newline



Package: ssh
Version: 1:3.8p1-3
Severity: normal

Hello,

At line 71 of ssh.postinst, the following command may be issued :
echo 'UsePAM yes' >> /etc/ssh/sshd_config.dpkg-new
Unfortunately on one of my machines, the last line was not terminated
with newline and i've come with a configuration file with some non used
options. Depending on what could be the last line in the file, that
could break some functionality  (example : User foo was my
last line and foo could not connect anymore because the line was wrong).

Simple solution : ensure there is a newline terminating the last line
with "echo -e '\nUsePAM yes' >>" instead.


Regards


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (40, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.3-wolk1.0
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (ignored: LC_ALL set to fr_FR@euro)

Versions of packages ssh depends on:
ii  adduser                     3.52         Add and remove users and groups
ii  debconf                     1.4.21       Debian configuration management sy
ii  dpkg                        1.10.20      Package maintenance system for Deb
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libpam-modules              0.76-16      Pluggable Authentication Modules f
ii  libpam-runtime              0.76-16      Runtime support for the PAM librar
ii  libpam0g                    0.76-16      Pluggable Authentication Modules l
ii  libssl0.9.7                 0.9.7d-1     SSL shared libraries
ii  libwrap0                    7.6-ipv6.1-3 Wietse Venema's TCP wrappers libra
ii  zlib1g                      1:1.2.1-5    compression library - runtime

-- debconf information excluded




Reply to: