Red Hat Bugzilla – Bug 468774
amanda postinstall scriptlet overzealous in changing user "amanda" to "amandabackup"
Last modified: 2008-11-06 21:55:40 EST
Description of problem:
Each upgrade to the "amanda" package results in the userid "amanda" being changed to "amandabackup" FOR ALL HOST ENTRIES in /var/lib/amanda/.amandahosts, including entries the scriptlet has no business changing. It should only be changing those that were part of the originally installed .amandahosts file, i.e. those for hosts names "localhost" and "localhost.localdomain", and not other (remote) host names.
Version-Release number of selected component (if applicable):
2.5.2.p1-9 and up (including current release 2.5.2.p1-12)
Steps to Reproduce:
1. Add entries to .amandahosts file for remote hosts with user "amanda".
2. Upgrade to new version of amanda package.
3. Check resulting .amandahosts file.
All entries in .amandahosts that have a username "amanda" will have that changed to "amandahosts". This breaks things if the remote host still happens to use the hostname "amanda". (This will be the case for almost any remote host not running FC9.)
The postinstall scriptlet should only change the original entries for "localhost" and "localhost.localdomain", leaving other intact. Whether or not any other host entries need to be changed or not cannot easily be determined automatically, and should be left up to the maintainer of the system.
OK, it is true, that this behaviour is overzealous
fixed in amanda-2.5.2p1-13.fc9
amanda-2.5.2p1-13.fc9 has been submitted as an update for Fedora 9.
amanda-2.5.2p1-13.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.