Amanda-Users

Re: Problems with amrecover in 2.4.5p1

2006-02-21 03:47:25
Subject: Re: Problems with amrecover in 2.4.5p1
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Stephen Carville <carville AT cpl DOT net>
Date: Tue, 21 Feb 2006 09:43:49 +0100
On 2006-02-21 09:25, Stephen Carville wrote:
My attempt to restore files with amrecover keep failing since I upgraded to 2.4.5. The output in amidxtaped.debug looks like:

amidxtaped: debug 1 pid 14962 ruid 250 euid 250: start at Mon Feb 20
[...]
amrestore: could not open /dev/ait2: Permission denied
amidxtaped: time 0.004: amrestore terminated normally with status: 2
amidxtaped: time 0.004: rewinding tape ...
amidxtaped: time 0.004: tape_rewind: tape open: /dev/ait2: Permission denied
amidxtaped: time 0.005: pid 14962 finish time Mon Feb 20 20:33:06 2006

My first question then is, what are the permissions of /dev/ait2,
and what are the user/group you are using for starting amidxtaped in
(x)inetd.



This makes no sense to me since I was able to recover the files using amrestore on the server.

amrestore runs as root, but amidxtaped runs as amanda usually.
If the permissions of /dev/ait2 are group readable, maybe you need
to add "groups = yes" in xinetd.conf to enable the additional groups
that user amanda is in.


--
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************


<Prev in Thread] Current Thread [Next in Thread>