PDA

View Full Version : Amanda client error (cannot oprn .amandahosts)



solamanda
January 8th, 2009, 08:47 AM
On amcheck, I get this error:

ERROR: NAK client_system: user amandabackup from server is not allowed to execute the service noop: cannot open //.amandahosts: Permission denied
Client check: 1 host checked in 0.042 seconds. 1 problem found.

The client is a FreeBSD system.
I am able to rsh from server to client and vice versa.

The file .amandahosts exists in the $HOME of the user amandabackup.


-rw------- 1 amandabackup disk 459 Jan 8 11:12 .amandahosts

$ cat .amandahosts
server amandabackup

Also, on client:
client_system# netstat -a | grep am
udp4 0 0 *.amanda *.*
c2419150 stream 0 0 c24d7660 0 0 0 /var/run/rpcbi

I am able to do rsh of noop (it kinda hangs, suggests amandabackup from server can execute it)....

On client:
client_system# pwd
/usr/local/libexec/amanda
client_system# cd ..
client_system# ls -al
total 134
drwxr-xr-x 5 root wheel 512 Jan 7 22:14 .
drwxr-xr-x 14 root wheel 512 Jan 7 22:14 ..
drwxr-xr-x 2 amandabackup disk 512 Jan 7 22:14 amanda
-r-xr-xr-x 1 root wheel 27420 Dec 7 2007 grmt
drwxr-xr-x 3 root wheel 512 Jan 6 07:32 hal
-r-xr-xr-x 1 root wheel 15336 Feb 13 2008 hal-storage-mount
-r-xr-xr-x 1 root wheel 4236 Feb 13 2008 hal-system-power-pmu
-r-xr-xr-x 1 root wheel 6060 Feb 13 2008 hald-addon-storage
-r-xr-xr-x 1 root wheel 5988 Feb 13 2008 hald-probe-hiddev
-r-xr-xr-x 1 root wheel 4236 Feb 13 2008 hald-probe-scsi
-r-xr-xr-x 1 root wheel 6176 Feb 13 2008 hald-probe-smbios
-r-xr-xr-x 1 root wheel 12676 Feb 13 2008 hald-probe-storage
-r-xr-xr-x 1 root wheel 19180 Feb 13 2008 hald-probe-volume
-r-xr-xr-x 1 root wheel 12644 Feb 13 2008 hald-runner

client_system# ls -al
total 162
drwxr-xr-x 2 amandabackup disk 512 Jan 7 22:14 .
drwxr-xr-x 5 root wheel 512 Jan 7 22:14 ..
-r-xr-xr-x 1 amandabackup disk 18660 Dec 7 2007 amandad
-r-sr-x--- 1 amandabackup disk 11196 Dec 7 2007 calcsize
-r-sr-x--- 1 amandabackup disk 6228 Dec 7 2007 killpgrp
-r-xr-xr-x 1 amandabackup disk 4664 Dec 7 2007 noop
-r-xr-xr-x 1 amandabackup disk 4833 Dec 7 2007 patch-system
-r-sr-x--- 1 amandabackup disk 4444 Dec 7 2007 rundump
-r-sr-x--- 1 amandabackup disk 6776 Dec 7 2007 runtar
-r-xr-xr-x 1 amandabackup disk 18624 Dec 7 2007 selfcheck
-r-xr-xr-x 1 amandabackup disk 32144 Dec 7 2007 sendbackup
-r-xr-xr-x 1 amandabackup disk 35116 Dec 7 2007 sendsize
-r-xr-xr-x 1 amandabackup disk 3628 Dec 7 2007 versionsuffix

shoodlum
January 9th, 2009, 12:54 PM
please help
http://forums.zmanda.com/images/smilies/smile.gif

QUOTE=solamanda;6073]On amcheck, I get this error:

ERROR: NAK client_system: user amandabackup from server is not allowed to execute the service noop: cannot open //.amandahosts: Permission denied
Client check: 1 host checked in 0.042 seconds. 1 problem found.

The client is a FreeBSD system.
I am able to rsh from server to client and vice versa.

The file .amandahosts exists in the $HOME of the user amandabackup.


-rw------- 1 amandabackup disk 459 Jan 8 11:12 .amandahosts

$ cat .amandahosts
server amandabackup

Also, on client:
client_system# netstat -a | grep am
udp4 0 0 *.amanda *.*
c2419150 stream 0 0 c24d7660 0 0 0 /var/run/rpcbi

I am able to do rsh of noop (it kinda hangs, suggests amandabackup from server can execute it)....

On client:
client_system# pwd
/usr/local/libexec/amanda
client_system# cd ..
client_system# ls -al
total 134
drwxr-xr-x 5 root wheel 512 Jan 7 22:14 .
drwxr-xr-x 14 root wheel 512 Jan 7 22:14 ..
drwxr-xr-x 2 amandabackup disk 512 Jan 7 22:14 amanda
-r-xr-xr-x 1 root wheel 27420 Dec 7 2007 grmt
drwxr-xr-x 3 root wheel 512 Jan 6 07:32 hal
-r-xr-xr-x 1 root wheel 15336 Feb 13 2008 hal-storage-mount
-r-xr-xr-x 1 root wheel 4236 Feb 13 2008 hal-system-power-pmu
-r-xr-xr-x 1 root wheel 6060 Feb 13 2008 hald-addon-storage
-r-xr-xr-x 1 root wheel 5988 Feb 13 2008 hald-probe-hiddev
-r-xr-xr-x 1 root wheel 4236 Feb 13 2008 hald-probe-scsi
-r-xr-xr-x 1 root wheel 6176 Feb 13 2008 hald-probe-smbios
-r-xr-xr-x 1 root wheel 12676 Feb 13 2008 hald-probe-storage
-r-xr-xr-x 1 root wheel 19180 Feb 13 2008 hald-probe-volume
-r-xr-xr-x 1 root wheel 12644 Feb 13 2008 hald-runner

client_system# ls -al
total 162
drwxr-xr-x 2 amandabackup disk 512 Jan 7 22:14 .
drwxr-xr-x 5 root wheel 512 Jan 7 22:14 ..
-r-xr-xr-x 1 amandabackup disk 18660 Dec 7 2007 amandad
-r-sr-x--- 1 amandabackup disk 11196 Dec 7 2007 calcsize
-r-sr-x--- 1 amandabackup disk 6228 Dec 7 2007 killpgrp
-r-xr-xr-x 1 amandabackup disk 4664 Dec 7 2007 noop
-r-xr-xr-x 1 amandabackup disk 4833 Dec 7 2007 patch-system
-r-sr-x--- 1 amandabackup disk 4444 Dec 7 2007 rundump
-r-sr-x--- 1 amandabackup disk 6776 Dec 7 2007 runtar
-r-xr-xr-x 1 amandabackup disk 18624 Dec 7 2007 selfcheck
-r-xr-xr-x 1 amandabackup disk 32144 Dec 7 2007 sendbackup
-r-xr-xr-x 1 amandabackup disk 35116 Dec 7 2007 sendsize
-r-xr-xr-x 1 amandabackup disk 3628 Dec 7 2007 versionsuffix[/QUOTE]

pyeatman
January 12th, 2009, 01:27 PM
Which user is your x/inetd Amanda service running under?

As you have rsh protocol set up, consider using this authentication method

http://wiki.zmanda.com/index.php/Configuring_rsh_authentication

although beware of the risk of using rsh on public IPs.