[pkg-ntp-maintainers] Bug#624275: post-install script fails to create ntp group

Aleksi Suhonen ams at cs.tut.fi
Wed Apr 27 02:13:33 UTC 2011


Package: ntp
Version: 1:4.2.6.p2+dfsg-1+b2
Severity: important
Tags: sid

If the user "ntp" already exists, the group "ntp" might not get created
by the postinst script, but the very next line tries to reference it:

if [ "$1" = "configure" ]; then
        adduser --system --quiet --group --no-create-home ntp || :
        chown -R ntp:ntp /var/lib/ntp /var/log/ntpstats
fi

Fix suggestion:

if [ "$1" = "configure" ]; then
        addgroup --system --quiet ntp || :
        adduser --system --quiet --ingroup ntp --no-create-home ntp || :
        chown -R ntp:ntp /var/lib/ntp /var/log/ntpstats
fi

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages ntp depends on:
ii  adduser                  3.112+nmu2      add and remove users and groups
ii  dpkg                     1.16.0.2        Debian package management system
ii  libc6                    2.11.2-13       Embedded GNU C Library: Shared lib
ii  libcap2                  1:2.20-1        support for getting/setting POSIX.
ii  libedit2                 2.11-20080614-2 BSD editline and history libraries
ii  libopts25                1:5.10-1.1      automated option processing librar
ii  libssl1.0.0              1.0.0d-2        SSL shared libraries
ii  lsb-base                 3.2-27          Linux Standard Base 3.2 init scrip
ii  netbase                  4.45            Basic TCP/IP networking system

Versions of packages ntp recommends:
ii  perl                          5.10.1-20  Larry Wall's Practical Extraction 

Versions of packages ntp suggests:
pn  ntp-doc                       <none>     (no description available)

-- Configuration Files:
/etc/ntp.conf changed [not included]

-- no debconf information





More information about the pkg-ntp-maintainers mailing list