On 2006-04-26 10:12, John Clement wrote:
Pavel Pragin wrote:
John Clement wrote:
Having read through some of the documentation it seemed a fairly
straight forward thing to install an Amanda client. However, I used
an rpm for it, having been forced to upgrade my tar software too but
it appears to be running as amandabackup and in /var/lib... So I'm
now getting the following:
amandad: time 0.002: accept error: access as amandabackup not allowed
from [EMAIL PROTECTED]: cannot open /var/lib/amanda/.amandahosts:
Permission denied
amandad: time 0.002: sending NAK pkt:
<<<<<
ERROR access as amandabackup not allowed from [EMAIL PROTECTED]: cannot
open /var/lib/amanda/.amandahosts: Permission denied
>>>>>
at the bottom of my amcheck. I've confirmed that the file is owned
and chmoded correctly:
-rw------- 1 amandabackup disk 109 Apr 25 14:23 .amandahosts
If I change the ownership or permissions it complains, so I think
they are correct. In the .amandahosts file I have
server.domain.tld amanda
server amanda
server.domain.tld amandabackup #added incase it made a difference
server amandabackup #added incase it made a difference
So can anyone make any suggestions?
Thanks
make sure that /var/lib/amanda/.amandahosts is owned by amanda and the
group is set to disk "chown amanda:disk /var/lib/amanda/.amandahosts"
Sorry, yes, it was infact owned by amanda:disk, the line I posted was
from one of the 'lets just change something and hope it works' attempts
I was having...
...
It should be owned by the user the runs the amanda software.
It seems that is "amandabackup" in your setup.
Anatomy of the errormsg:
access as amandabackup not allowed
from [EMAIL PROTECTED]: cannot open /var/lib/amanda/.amandahosts:
Permission denied
"amandabackup" is the local user
"[EMAIL PROTECTED]" is the [EMAIL PROTECTED] that tries to connect.
And the errormsg is that the local user "amandabackup" has no
permission to read/access the file .amandahosts .
So try:
# su amandabackup -c "cat /var/lib/amanda/.amandahosts"
and fix those permissions.
--
Paul Bijnens, xplanation Technology Services Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +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 *
***********************************************************************