Paul Bijnens wrote:
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.


OK, the story continues, thanks to all those who've contributed so far!! Here's how things are now after all your comments. The client is a new install of 2.5, server is 2.4.4p3

-rw-------   1 amandabackup disk  109 Apr 25 14:23 .amandahosts

/, /var, /lib, /var/lib/amanda are all readable.

xinetd.d/amanda:

=========
service amanda
{
       socket_type             = dgram
       protocol                = udp
       wait                    = yes
       user                    = amandabackup
       group                   = disk
       groups                  = yes
       server                  = /usr/lib/amanda/amandad
       disable                 = no
       only_from               = 10.10.1.8 192.168.0.1
}
=========

but still I get this from amcheck:

ERROR: NAK murray.deanst.rroom.net: access as amandabackup not allowed from [EMAIL PROTECTED]: cannot open /var/lib/amanda/.amandahosts: Permission denied

Any more suggestions? - thanks

Reply via email to