Re: Problems with amrecover in 2.4.5p1

2006-02-21 Thread Paul Bijnens

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 ServicesTel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax  +32 16 397.512
http://www.xplanation.com/  email:  [EMAIL PROTECTED]
***
* 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  *
***



Re: Problems with amrecover in 2.4.5p1

2006-02-21 Thread Stephen Carville

Paul Bijnens wrote:

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.


Sound of palm slapping forhead...That was it.

/dev/ait2 is a symlink to /dev/nst0.  I checked the old server and the 
permissions there were:


crw-rw-r--1 root disk   9, 128 Aug 30  2001 /dev/nst0

On the new server:

crw-rw  1 root disk 9, 128 Feb 19 11:53 /dev/nst0

Once I added the global read, amrecover worked again.  I don't know how 
many time I looked at those permissions wihtseeing the problem.


Thanks

--
Stephen Carville -- polluting the ranks of skeptics since 1995.
---
Government is actually the worst failure of civilized man. There has 
never been a really good one, and even those that are most tolerable are 
arbitrary, cruel, grasping and unintelligent.

 -- H. L. Mencken