Amanda-Users

Amanda 2.6 rpms on Fedora 8 and a small bug in the amanda.spec

2008-04-23 09:27:17
Subject: Amanda 2.6 rpms on Fedora 8 and a small bug in the amanda.spec
From: "Donald Murray, P.Eng." <donaldm314 AT gmail DOT com>
To: amanda-users <amanda-users AT amanda DOT org>
Date: Wed, 23 Apr 2008 07:22:07 -0600
Hi,

I'm upgrading a fedora 8 client from 2.5.2p1-8.fc8 (installed from a stock
fedora repo) to 2.6.0. I've only found 2.6.0 binary rpms for fedora 7 here,
but no fedora 8:
http://www.zmanda.com/download-amanda.php

I tried installing zmanda's amanda-backup_client-2.6.0-1.fc7.i386.rpm
on fedora 8
and it produced the following:

warning: amanda-backup_client-2.6.0-1.fc7.i386.rpm: Header V3 DSA
signature: NOKEY, key ID 3c5d1c92
Preparing...                ########################################### [100%]
passwd: Unknown user name 'amandabackup'.
Apr 23 2008 06:52:56: Preparing to install: Amanda Community Edition -
version 2.6.0
Apr 23 2008 06:52:56: Checking for 'amandabackup' user...
useradd: unknown group -d
Apr 23 2008 06:52:56:  !!! WARNING! WARNING! WARNING! WARNING!
WARNING! WARNING! !!!
Apr 23 2008 06:52:56:  !!!
          !!!
Apr 23 2008 06:52:56:  !!!  The 'amandabackup' user account for this
system has been   !!!
Apr 23 2008 06:52:56:  !!!  created, however the user has no password
set. For   !!!
Apr 23 2008 06:52:56:  !!!  security purposes this account  is
normally locked   !!!
Apr 23 2008 06:52:56:  !!!  after creation.  Unfortunately,  when
locking this   !!!
Apr 23 2008 06:52:56:  !!!  account an error occurred.  To ensure the
security   !!!
Apr 23 2008 06:52:56:  !!!  of your system  you should set a password
for the   !!!
Apr 23 2008 06:52:56:  !!!  user account 'amandabackup' immediately!
To set  such a   !!!
Apr 23 2008 06:52:56:  !!!  password, please issue the following
command.:       !!!
Apr 23 2008 06:52:56:  !!!
          !!!
Apr 23 2008 06:52:56:  !!!   # passwd amandabackup
                !!!
Apr 23 2008 06:52:56:  !!!
          !!!
Apr 23 2008 06:52:56:  !!! WARNING! WARNING! WARNING! WARNING!
WARNING! WARNING! !!!
Apr 23 2008 06:52:56:  Checking ownership of '/var/lib/amanda'... incorrect!
Apr 23 2008 06:52:56:  Please ensure that the directory
'/var/lib/amanda' is owned by
Apr 23 2008 06:52:56:  the user 'amandabackup' and group 'disk'.
Apr 23 2008 06:52:56:
Please review '/var/log/amanda/install.err' to correct errors which
have prevented the Amanda installaton.
Amanda installation log can be found in '/var/log/amanda/install.log'
and errors (if any) in '/var/log/amanda/install.err'.
error: %pre(amanda-backup_client-2.6.0-1.fc7.i386) scriptlet failed,
exit status 1
error:   install: %pre scriptlet failed (2), skipping
amanda-backup_client-2.6.0-1.fc7

The stock fedora 8 rpm used 'amanda' instead of 'amandabackup'. From the
spec file in amanda-2.6.0-1.fc3.src.rpm I found:
useradd -c "Amanda" -M -g ${amanda_group} -d %{AMANDAHOMEDIR} -s
/bin/sh %{amanda_user}

The '${amanda_group}' should be '%{amanda_group}'.

I manually created the amandabackup user and locked the account. I
then fixed the ownership
of /var/lib/amanda and attempted the install again. This time it
worked without errors.

Hope this helps!

<Prev in Thread] Current Thread [Next in Thread>
  • Amanda 2.6 rpms on Fedora 8 and a small bug in the amanda.spec, Donald Murray, P.Eng. <=