On Thursday 01 August 2002 04:02, Trevor Fraser wrote:
>Hello all.
>
>Last night my boss gave me a test to see if I can recover lost
> files before copying everything from his computer to our amanda
> server( I know we could backup his computer too, but we've chosen
> to use samba to store files on a share here and backup this
> share).  Anyway, so I couldn't do it, and obviously he isn't
> impressed.
>
>Anyway, the problem comes when I try 'amrecover' from the /
> directory.  The error is:
>
>[root@merlin /]# amrecover
>AMRECOVER Version 2.4.2p2.  Contacting server on localhost . . .
>220 merlin AMANDA index server (2.4.2p2) ready.
>500 Access not allowed: [ access as amanda not allowed from
> [EMAIL PROTECTED] ]  amandahostsauth failed [
> root@merlin /]#
>
>My amanda dumpuser is root, and in amanda, amandaidx and amidxtape
> are user = amanda. My .amandahost looks like this:
>
>merlin.systematic.lan    root
>merlin.systematic.lan    amanda
>localhost.localdomain    amanda
>
>The file belong to root:root and has read and write privileges for
> the user owner only.
>
>I've read the FAQ's and saw a similar problem, but with regard to
> amcheck.  I can amcheck and amdump fine.  What is the next step
> in troubleshooting?
>
>Thanks, Trevor.

Making sure that your setup is consistent as far as users and groups 
are defined would be a good start.

You didn't say whether you were using the rpm's or the tar.gz's, 
which would also be helpfull.

The first thing I do after unpacking a new amanda archive is to do 
as root, "chown -R amanda:disk amanda-version-date"

Then become user amanda, configure and build it.  Then become root 
again and do the make install, thereby automaticly setting all the 
perms and such amanda needs to run for backups.  For backups, it 
must be run as the user of the user:group spec above, and will 
refuse to run for user root.

For recoveries, I think those functions must be run as root.  Also, 
using localhost@localdomain will come back to haunt you so please 
remove that line in addition to the one with the root user 
specifier.  Use the FQDN of the machine when you add another 
machine even if its the same machine its running on.

One other item, samba doesn't keep all the file dates correctly in 
its local copies.  If you are going to do a local copy, and then 
backup that local copy, rsync does a much better job of doing that 
copy.

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

Reply via email to