On Thursday 25 July 2002 12:07, Peter Seebach wrote:
>In message <1027611162.2658.46.camel@stimpy>, Mark Cooke writes:
>>On Thu, 2002-07-25 at 16:24, Peter Seebach wrote:
>>> In message <[EMAIL PROTECTED]>, Martin Hepworth 
writes:
>>> >Peter
>>> >
>>> >Did you configure amanda with the --with-user=operator config
>>> > option?
>>>
>>> I think so; if nothing else, that's in amanda.conf.
>>
>>Are you using an Officially released version of Amanda from
>> RedHat? If so it automatically uses --with-user=amanda.
>
>No... I looked around, and there wasn't one, so I assumed I'd be
> fine just downloading and compiling.  I guess I need to find the
> RPM.

Not required.  Building from sources is the prefered method to the 
majority of this group's readers.

However, with the rather lengthy options one should give the 
configure program, I find it easy to keep from making mistakes as I 
build each newer snapshot by doing the configuration with a script.

As pointed out in the readme's, one should do certain things to 
build amanda properly.  And because amanda isn't built while being 
root, its normally built in 
/home/amanda/amanda-version-snapshot-date
instead of /usr/src.

1. As user amanda, in the /home/amanda directory, unpack the tar.gz.
2. su - to get root privs and cd back to /home/amanda, and do
#>chown -R amanda:disk amanda-version-snapshot-date
3. exit back to user amanda and cd into this directory.
4. run this script after editing things to suit your setup:
--------------------
#!/bin/sh
make clean
rm -f config.status config.cache
./configure \
        --with-user=amanda \
        --with-group=disk \
        --with-owner=amanda \
        --with-tape-device=/dev/nst0 \
        --with-changer-device=/dev/sg1 \
        --with-gnu-ld --prefix=/usr/local \
        --with-debugging=/tmp/amanda-dbg/ \
        --with-tape-server=IP.OF.MACHINE.WITH-drive \
        --with-amandahosts \
        --with-configdir=/usr/local/etc/amanda
-------------------------------------------
which for obvious reasons I call gh.cf, set the exec bits and
#>./gh.cf
and watch it run.

If you don't have a changer, remove that line from the above script 
and fix other things to fit your system too.

5. when its done;
#>make
6. su - to get root privs again, and
#>make install
The installer will take care of setting all the perms.  Only the 
user 'amanda' can run amanda, and amanda takes care of getting root 
priviledges when she needs to automaticly, and in fact most of it 
won't run when you are root. When you're happy that it will run, 
then you, as user amanda, make up the crontab entries that are in 
the docs, and which will run amanda from then on.

7. At this point you are ready to start setting up your own 

/usr/local/etc/amanda/configname/amanda.conf.

And from there its all in the details.

Make yourself a disklist with only a couple of entries to get 
started, more can be added later.

Repeated runs of 'amcheck configname', making dirs, touching files 
and such until you are down to the 'host down' error, which means 
that inetd.conf, or xinetd is miss-configured, if you system runs 
inetd, see the docs.  If its running xinetd, then you'll have an 
/etc/xinetd.d directory, and you'll need this file, named 'amanda' 
to be installed in the above directory:
-------------------------------------------------
# default = off
#
# description: Part of the Amanda server package
# This is the list of daemons & such it needs

service amanda
{
        disable = no
        socket_type     = dgram
        protocol        = udp
        wait            = yes
        user            = amanda
        group           = disk
        groups          = yes
        server          = /usr/local/libexec/amandad
}
service amandaidx
{
        disable = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = amanda
        group           = disk
        groups          = yes
        server          = /usr/local/libexec/amindexd
}
service amidxtape
{
        disable = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = amanda
        group           = disk
        groups          = yes
        server          = /usr/local/libexec/amidxtaped
}
----------------------------------------------
Don't forget to chown this file to amanda:disk

This should get you there, if not, come and yell at one of us and 
we'll 'have another go' at it.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.08% setiathome rank, not too shabby for a WV hillbilly

Reply via email to