Bug 468774

Summary: amanda postinstall scriptlet overzealous in changing user "amanda" to "amandabackup"
Product: [Fedora] Fedora Reporter: Gilbert E. Detillieux <gedetil>
Component: amandaAssignee: Daniel Novotny <dnovotny>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: dnovotny, gedetil, vchepkov
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-07 02:55:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gilbert E. Detillieux 2008-10-27 22:17:52 UTC
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)

How reproducible:
Consistent.

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.
  
Actual results:
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.)

Expected results:
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.

Additional info:

Comment 1 Daniel Novotny 2008-11-04 14:31:52 UTC
OK, it is true, that this behaviour is overzealous

fixed in amanda-2.5.2p1-13.fc9

Comment 2 Fedora Update System 2008-11-04 14:32:20 UTC
amanda-2.5.2p1-13.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/amanda-2.5.2p1-13.fc9

Comment 3 Fedora Update System 2008-11-07 02:55:38 UTC
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.