Amanda-Users

amrecover Permission denied error

2003-05-19 14:23:34
Subject: amrecover Permission denied error
From: Paul Barton <paul AT moonkhan DOT org>
To: amanda-users AT amanda DOT org
Date: Mon, 19 May 2003 14:40:34 -0400
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?

--Paul

Paul Barton             http://www.moonkhan.org     -o)
paul AT moonkhan DOT org                                   /\\
"Black holes are where God divided by zero."       _\_V

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