spamassassin postinst uses a login shell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Ubuntu) |
New
|
High
|
Unassigned |
Bug Description
When upgrading my precise mail server to trusty, spamassasin errored out the upgrade by running a login shell somewhere. I could tell it happened because it ran /usr/games/fortune and tried to use some bash login files sourced from the official ones:
Setting up spamassassin (3.4.0-1ubuntu1) ...
I note with interest that my beloved is now partway lodged
in a hedgerow. Just makin' all my dreams come true.
-- Ryan, SGR 2009-06-18
-su: 1: /etc/local.login: whoson: not found
Current users:
(0 people logged in)
-su: 28: /etc/bash_
-su: 34: /etc/bash_
-su: 51: /etc/bash_
dpkg: error processing spamassassin (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
spamassassin
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: spamassassin 3.4.0-1ubuntu1
Uname: Linux 3.14.0-
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Apr 20 17:07:57 2014
EcryptfsInUse: Yes
PackageArchitec
SourcePackage: spamassassin
UpgradeStatus: Upgraded to trusty on 2014-02-25 (53 days ago)
Changed in spamassassin (Ubuntu): | |
importance: | Undecided → High |
It would appear most likely that this is caused by the line that runs:
su - $OWNER -c "sa-update --gpghomedir /var/lib/ spamassassin/ sa-update- keys --import /usr/share/ spamassassin/ GPG.KEY"