Package: amavisd-new
Version: 1:2.4.2-1
Severity: minor
Tags: patch

The script /usr/sbin/amavisd-new-cronjob doesn't work when it is called
as root and the amavis user has no valid shell (which is the default I
believe).

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages amavisd-new depends on:
ii  adduser                       3.97       Add and remove users and groups
ii  debconf [debconf-2.0]         1.5.4      Debian configuration management sy
ii  file                          4.17-3     Determines file type using "magic"
ii  libarchive-tar-perl           1.30-1     Archive::Tar - manipulate tar file
ii  libarchive-zip-perl           1.16-1     Module for manipulation of ZIP arc
ii  libberkeleydb-perl            0.29-1     use Berkeley DB 4 databases from P
ii  libcompress-zlib-perl         1.42-1     Perl module for creation and manip
ii  libconvert-tnef-perl          0.17-5     Perl module to read TNEF files
ii  libconvert-uulib-perl         1.06-1     Perl interface to the uulib librar
pn  libdigest-md5-perl            <none>     (no description available)
ii  libio-stringy-perl            2.110-1    Perl5 modules for IO from scalars 
ii  libmailtools-perl             1.74-0.1   Manipulate email in perl programs
pn  libmime-base64-perl           <none>     (no description available)
ii  libmime-perl                  5.420-0.1  Perl5 modules for MIME-compliant m
ii  libnet-perl                   1:1.19-3   Implementation of Internet protoco
ii  libnet-server-perl            0.90-1     An extensible, general perl server
ii  libunix-syslog-perl           0.100-5    Perl interface to the UNIX syslog(
ii  perl [libtime-hires-perl]     5.8.8-6.1  Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl]    5.8.8-6.1  Core Perl modules

amavisd-new recommends no packages.

-- debconf information:
  amavisd-new/outdated_config_style_warning:
--- /tmp/amavisd-new-cronjob    2006-09-28 09:37:08.000000000 +0200
+++ /usr/sbin/amavisd-new-cronjob       2006-09-28 09:37:44.000000000 +0200
@@ -19,7 +19,7 @@
 # WATCH OUT FOR PROPER QUOTING LEVEL WHEN CALLING THIS!
 do_amavis_cmd() {
        if [ "$(id -u -n)" != "${SUUSER}" ]; then
-               exec /bin/su - "${SUUSER}" -c "$*"
+               exec /bin/su -s /bin/sh - "${SUUSER}" -c "$*"
        else
                # to get the same quoting level as the su path
                CMD="$*"

Reply via email to