Bug 895818 - some amanda files get installed as root rather than group "disk"
Summary: some amanda files get installed as root rather than group "disk"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: amanda
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Petr Hracek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 909679 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-16 04:10 UTC by Julian C. Dunn
Modified: 2013-02-14 02:25 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-14 02:25:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Julian C. Dunn 2013-01-16 04:10:05 UTC
Description of problem:

Due to an error in packaging, some of Amanda's files don't take on the group ID "disk" but instead get installed as root.

Version-Release number of selected component (if applicable):

amanda-3.3.2-2.fc18.x86_64

How reproducible:

Always

Steps to Reproduce:
1. yum -y install amanda
2.
3.
  
Actual results:

demeter:~$ sudo yum install amanda
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * fedora: mirror.us.as6453.net
 * updates: mirror.us.as6453.net
Resolving Dependencies
--> Running transaction check
---> Package amanda.x86_64 0:3.3.2-2.fc18 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch            Version                  Repository       Size
================================================================================
Installing:
 amanda          x86_64          3.3.2-2.fc18             fedora          738 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 738 k
Installed size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
amanda-3.3.2-2.fc18.x86_64.rpm                             | 738 kB   00:00     
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : amanda-3.3.2-2.fc18.x86_64                                   1/1 
warning: user %amanda_user does not exist - using root
warning: group %amanda_group does not exist - using root
warning: user %amanda_user does not exist - using root
warning: group %amanda_group does not exist - using root
warning: user %amanda_user does not exist - using root
warning: group %amanda_group does not exist - using root
  Verifying  : amanda-3.3.2-2.fc18.x86_64                                   1/1 

Installed:
  amanda.x86_64 0:3.3.2-2.fc18                                                  

Complete!


Expected results:

Correct permissions on binaries like /sbin/amcheck, etc.

Inspecting the specfile, I can see the %amanda_user and %amanda_group macros are supposed to be substituted with "amandabackup" and "disk" as per the %defines but I don't know why they're not.

Additional info:

Comment 1 Julian C. Dunn 2013-01-16 04:17:10 UTC
Looking at some other specfiles ... maybe it's that %attr and %defattr doesn't expand macros?

Comment 2 Julian C. Dunn 2013-01-18 05:39:16 UTC
A little more on this:

I rebuilt the Amanda package as-is in Koji:

http://koji.fedoraproject.org/koji/taskinfo?taskID=4879945

And installed the RPMs. It works normally. So I can only assume that when the amanda packages that ship with Fedora 18 got built, rpmbuild was broken such that %attr and %defattr didn't expand macros.

The solution, I'd imagine, is just to bump the revision # and rebuild the Amanda packages.

Comment 3 Fedora Update System 2013-01-21 08:32:34 UTC
amanda-3.3.2-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/amanda-3.3.2-3.fc18

Comment 4 Fedora Update System 2013-01-23 01:31:40 UTC
Package amanda-3.3.2-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing amanda-3.3.2-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1196/amanda-3.3.2-3.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Admin XMLRPC Client 2013-02-05 12:33:39 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Trever Adams 2013-02-13 14:39:24 UTC
*** Bug 909679 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2013-02-14 02:25:04 UTC
amanda-3.3.2-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.