On Thursday 27 June 2002 10:57, Eduardo Ceva wrote:
>Well I had logged like operador, and using console I used su -
> command, well I will try to recompile again logged as root, let�s see
> what happens in my disklist I have this:
And thats going to bite you too, Eduardo
The normal (for me anyway) sequence to use when building amanda is this:
as root:
make sure that user "amanda" exists, and that "amanda" is a member of
group "disk"
#>cd /home/amanda
#>tar xzvf path_to_amanda_archive.tar.gz
This will build you a directory in /home/amanda as
amanda_whatever_version_date that one was.
#>chown -R amanda:disk amanda_whatever_version_date
#>su amanda
#>cd /home/amanda/amanda_whatever_version_date
Run the configure script giving it the options it needs. To be
consistent, I long ago committed that to a script too, and it looks
like this, and named gh.cf, and run as
#> ./gh.cf
--------gh.cf------------------
#!/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/sg2 \
--with-gnu-ld \
--prefix=/usr/local \
--with-debugging=/var/log/amanda-dbg/ \
--with-tape-server=ipaddress_of_machine \
--with-amandahosts \
--with-configdir=/usr/local/etc/amanda
-------------------------
edit the --with-tape-device= to fit your situation of course, and remove
the --with-changer-device= line if you don't have one.
Now, while still as user amanda,
#>make
when that make is finished, exit back to root
#>exit
#>cd amanda_whatever_version_date
#>make install
At this point you are down to running amcheck (as user amanda) and
building the directories and files it needs with either mkdir or touch
as required until you have a working environment for the first amdump
run.
By following the above proceedure/sequence, all the various permissions
and setuid's required will be done properly, effectively removeing them
from the tools the infamous Mr. Murphy has at his disposal
>
># /etc of piaui.
>piaui /etc { # the line break here is mandatory
> always-full # copy properties of root-tar
> compress server best # but change the compression mode
>} # spindle and interface omitted here
>
># amandas configuration
>piaui /usr/local/etc/amanda {
> always-full
> compress server best
>} local
>
>----- Original Message -----
From: "Joshua Baker-LePain" <[EMAIL PROTECTED]>
>To: "Eduardo Ceva" <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Thursday, June 27, 2002 11:48 AM
>Subject: Re: help with amdump
>
>> On Thu, 27 Jun 2002 at 11:04am, Eduardo Ceva wrote
>>
>> > well runing ./amcheck config I get this
>> >
>> > manda Tape Server Host Check
>> > -----------------------------
>> > WARNING: program /usr/local/libexec/planner: not setuid-root
>> > WARNING: program /usr/local/libexec/dumper: not setuid-root
>> > WARNING: program /usr/local/sbin/amcheck: not setuid-root
>>
>> OK, this is a problem. Did you run 'make install' as root? Those
>> programs need to be setuid for amanda to work correctly. The
>> easiest way to make sure that everything that needs to be setuid,
>> is, is to run 'make install' as root.
>>
>> Also, if /usr/local is NFS mounted, make sure it's exported with the
>> no_root_squash flag.
>>
>> > another thing, I not sure if I am using DuMP or TAR, but I guess I
>> > am
>
>using
>
>> > dump
>> > what should I do now???
>>
>> It depends on the dumptype you specify in your disklist. Also, you
>> need to know that dump can only backup full filesystems (i.e.
>> entries in the output of 'df'). If you want to backup
>> subdirectories, you need to use tar.
And bear in mind that dump does not do "excludes", tar does. The tar
version must be at least 1.13-19 or better though. To use tar, the tar
you are going to use MUST be previously installed so that it can be
found by the configure script when configure is run, its path
apparently becomes hard coded into the amanda executables. I use
tar-1.13.-25 as I do have some "excludes" in my system. It works well.
--
Cheers, Gene
CE @ WDTV-5, CBS for N. Central WV