Well,  first thing I usually see recommended is to try the actual fully 
qualified domain name (FQDN)  rather than “localhost”.  
You might try that while waiting for other replies  (and perhaps an explanation 
of why “localhost”  isn’t great).
Deb Baddorf
Fermilab



On Aug 15, 2014, at 1:32 AM, Allen Liu <[email protected]> wrote:

> Hi experts,
> I installed following amanda pkgs on a Fedora 20. Want to use it as both 
> server and client. Related files are included below. 
> I can run backup (amdump) without problems. But amrecover failed.I tried both 
> localhost and hostname (lc2). Same error. It kept telling me to add 
> "localhost root amindexd amidxtaped" to /var/lib/amanda/.amandahosts on the 
> server. Actually I have already added it. I also checked the log files, can't 
> find any useful info. 
> Anyone has any clue ? Did I miss anything ?
> 
> Error msg:
> [root@lc2 amanda]# amrecover -s localhost -t localhost -C MySet4
> AMRECOVER Version 3.3.3. Contacting server on localhost ...
> NAK: user root from localhost is not allowed to execute the service amindexd: 
> Please add the line "localhost root amindexd amidxtaped" to 
> /var/lib/amanda/.amandahosts on the server
> 
> [root@lc2 amanda]# amrecover -s lc2 -t lc2 -C MySet4
> AMRECOVER Version 3.3.3. Contacting server on lc2 ...
> NAK: user root from lc2 is not allowed to execute the service amindexd: 
> Please add the line "lc2 root amindexd amidxtaped" to 
> /var/lib/amanda/.amandahosts on the server
> 
> Settings:
> [root@lc2 amanda]# cat /var/lib/amanda/.amandahosts
> lc1 root
> localhost root
> lc2 root
> lc2 amandabackup
> lc2 root amindexd amidxtaped
> localhost root amindexd amidxtaped
> localhost.localdomain root amindexd amidxtaped
> 
> [root@lc2 amanda]# cat /etc/hosts
> 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
> ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
> 192.168.6.9    lc2
> 192.168.6.8    lc1
> 
> [root@lc2 amanda]# rpm -qa|grep amanda
> amanda-client-3.3.3-10.fc20.x86_64
> amanda-libs-3.3.3-10.fc20.x86_64
> amanda-server-3.3.3-10.fc20.x86_64
> amanda-3.3.3-10.fc20.x86_64
> 
> 
> 
> 
> 
> Thanks,
> 
> -Allen Liu 


Reply via email to