Public bug reported: Since about two to three days I'm getting errors from an amavis-cronjob. The error message is: "/usr/sbin/amavisd-new-cronjob: 22: exec: /bin/su: Permission denied".
The cronjob is located in /etc/cron.daily/amavisd-new and contains the following: "#!/bin/sh # # Daily maintenance for amavisd-new # $Id: amavisd-new.cron.daily 930 2006-08-10 13:38:45Z hmh $ # test -e /usr/sbin/amavisd-new-cronjob && exec /usr/sbin/amavisd-new-cronjob sa-clean exit 0 " As one can see the file /usr/sbin/amavisd-new-cronjob is being exectued with the option sa-clean and line 22 causes the following error: "exec: /bin/su: Permission denied". Line 22 looks like this : "exec /bin/su -s /bin/sh - "${SUUSER}" -c "$*" >/dev/null" . The variable SUUSER is set in line 13: SUUSER="vmail". To me it looks like vmail is not allowed to run su? Any idea what has changed? I have seen this bug on two differen servers both running ubuntu 12.04.4 LTS. The package amavisd-new is on 1:2.6.5-0ubuntu3.2. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: amavisd-new 1:2.6.5-0ubuntu3.2 [modified: usr/sbin/amavisd-new-cronjob] Uname: Linux 2.6.32-042stab076.8 x86_64 ApportVersion: 2.0.1-0ubuntu17.6 Architecture: amd64 Date: Wed Jan 22 14:10:09 2014 MarkForUpload: True PackageArchitecture: all ProcEnviron: TERM=xterm PATH=(custom, no user) LANG=de_DE.UTF-8 LC_MESSAGES=POSIX SHELL=/bin/bash SourcePackage: amavisd-new UpgradeStatus: No upgrade log present (probably fresh install) modified.conffile..etc.amavis.conf.d.05.node.id: [modified] modified.conffile..etc.amavis.conf.d.15.content.filter.mode: [modified] modified.conffile..etc.amavis.conf.d.40.policy.banks: [modified] modified.conffile..etc.amavis.conf.d.50.user: [modified] mtime.conffile..etc.amavis.conf.d.05.node.id: 2013-06-29T22:42:07.513434 mtime.conffile..etc.amavis.conf.d.15.content.filter.mode: 2013-07-04T00:28:19.673488 mtime.conffile..etc.amavis.conf.d.40.policy.banks: 2013-06-29T22:43:29.123435 mtime.conffile..etc.amavis.conf.d.50.user: 2013-06-29T23:42:58.053728 ** Affects: amavisd-new (Ubuntu) Importance: Undecided Status: New ** Tags: amavisd-new amd64 apport-bug precise -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to amavisd-new in Ubuntu. https://bugs.launchpad.net/bugs/1271538 Title: Amavis-Cronjob fails due to problem with SU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/amavisd-new/+bug/1271538/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs