Re: amrecover Permission denied error
2003-05-19 19:36:49
On Mon, May 19, 2003 at 02:40:34PM -0400, Paul Barton wrote:
> I keep getting the following error when running amrecover (as root) from
> an amanda client (jaguar):
>
> amrecover> extract
>
> Extracting files using tape drive /dev/tape on host data1.mydomain.com.
> The following tapes are needed: DailySet110
>
> Restoring files into directory /home/bartonp/dcc
> Continue [?/Y/n]? y
>
> Extracting files using tape drive /dev/tape on host data1.mydomain.com.
> Load tape DailySet110 now
> Continue [?/Y/n/t]? y
> EOF, check amidxtaped.debug file on data1.mydomain.com.
> amrecover: short block 0 bytes
> UNKNOWN file
> amrecover: Can't read file header
> extract_list - child returned non-zero status: 1
>
> Here is the pertinent amidxtaped.debug file:
>
> amidxtaped: debug 1 pid 16792 ruid 78 euid 78: start at Mon May 19 13:50:19
> 2003
> amidxtaped: version 2.4.4
> amidxtaped: time 0.000: > SECURITY USER root
> amidxtaped: time 0.001: bsd security: remote host jaguar.mydomain.com user
> root local user amanda
> amidxtaped: time 0.001: amandahosts security check passed
> amidxtaped: time 0.001: > 6
> amidxtaped: time 0.001: amrestore_nargs=6
> amidxtaped: time 0.001: > -h
> amidxtaped: time 0.001: > -p
> amidxtaped: time 0.001: > /dev/tape
> amidxtaped: time 0.001: > ^jaguar.mydomain.com$
> amidxtaped: time 0.001: > ^/home$
> amidxtaped: time 0.001: > 20030515
> amidxtaped: time 0.001: Ready to execv amrestore with:
> path = /usr/local/sbin/amrestore
> argv[0] = "amrestore"
> argv[1] = "-h"
> argv[2] = "-p"
> argv[3] = "/dev/tape"
> argv[4] = "^jaguar.mydomain.com$"
> argv[5] = "^/home$"
> argv[6] = "20030515"
> amrestore: could not open /dev/tape: Permission denied
> amidxtaped: time 0.005: amrestore terminated normally with status: 2
> amidxtaped: time 0.005: rewinding tape ...
> amidxtaped: time 0.005: tape_rewind: tape open: /dev/tape: Permission denied
> amidxtaped: time 0.005: pid 16792 finish time Mon May 19 13:50:19 2003
>
> I tried running amrestore with the 6 arguments listed above on the tape
> server (data1) as user amanda - it worked fine. Any ideas why I would be
> getting Permission denied errors on /dev/tape with amidxtaped?
>
Running remote? Maybe root doesn't retain root rights across net?
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|