Amanda-Users

Re: amfetchdump: running as user "root" instead of "amanda" ??

2008-11-04 11:51:13
Subject: Re: amfetchdump: running as user "root" instead of "amanda" ??
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Jean-Francois Malouin <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca>
Date: Tue, 04 Nov 2008 11:48:08 -0500
Jean-Francois Malouin wrote:
Running amanda-2.6.0p2 an attempting to restore a run:

# id
uid=0(root) gid=0(root) groups=0(root)
# amfetchdump -p -d tape:/dev/nst0 conf1 gustav | tar -xpGf -
amfetchdump: running as user "root" instead of "amanda"

ugh?
jf
amfetchdump must be able to access the amanda log and index. Only the 'amanda' user can do it.

su amanda -c "amfetchdump -p -d tape:/dev/nst0 conf1 gustav" | tar -xpGf -

Jean-Louis