PDA

View Full Version : 500 Access not allowed -



protloc0
June 12th, 2007, 04:20 PM
hello, when i try to do the recover, afeter doin' "amcheck", "amdump". With the client, now i wanna test with "amrecover", but..
i get this issues..

[root@virt1 amanda]# amrecover -s host1.stealth.com
AMRECOVER Version 2.5.0p2. Contacting server on host1.stealth.com ...
220 host1 AMANDA index server (2.5.0p2) ready.
500 Access not allowed
[root@virt1 amanda]#


-------------
server
-------------
[root@host1 xinetd.d]# cat /var/log/amanda/amindexd.20070612184429.debug
amindexd: debug 1 pid 13855 ruid 33 euid 33: start at Tue Jun 12 18:44:29 2007
amindexd: version 2.5.0p2
amindexd: < 220 host1 AMANDA index server (2.5.0p2) ready.
amindexd: > SECURITY USER root
bsd security: remote host virt1.stealth.com user root local user amanda
amindexd: < 500 Access not allowed
amindexd: [access as amanda not allowed from root@virt1.stealth.com: /var/lib/amanda/.amandahosts: incorrect permissions; file must be accessible only by its owner]
amindexd: < 200 Good bye.
amindexd: pid 13855 finish time Tue Jun 12 18:44:29 2007


What can i doo!!?

server .amandahost

[root@host1 xinetd.d]# cat /var/lib/amanda/.amandahosts
localhost amanda
localhost.localdomain amanda
virt1.stealth.com root
virt1.stealth.com amanda
host1.stealth.com root amindexd amidxtaped
host1.stealth.com amanda amdump

---- xinetd pwd ---

[root@host1 xinetd.d]# pwd
/etc/xinetd.d
[root@host1 xinetd.d]# ls -lha
total 200K
drwxr-xr-x 2 root root 4,0K jun 12 18:08 .
drwxr-xr-x 96 root root 12K jun 12 17:58 ..
-rw-r--r-- 1 root root 390 jun 12 18:08 amanda
-rw-r--r-- 1 root root 227 jun 12 18:08 amandaidx
-rw-r--r-- 1 root root 12K jun 7 15:50 .amanda.swp
-rw-r--r-- 1 root root 230 jun 12 18:08 amidxtape


What can i do, dudes!,

thanks for u help!!!

paddy
June 12th, 2007, 07:18 PM
hello, when i try to do the recover, afeter doin' "amcheck", "amdump". With the client, now i wanna test with "amrecover", but..
i get this issues..

[root@virt1 amanda]# amrecover -s host1.stealth.com
AMRECOVER Version 2.5.0p2. Contacting server on host1.stealth.com ...
220 host1 AMANDA index server (2.5.0p2) ready.
500 Access not allowed
[root@virt1 amanda]#


-------------
server
-------------
[root@host1 xinetd.d]# cat /var/log/amanda/amindexd.20070612184429.debug
amindexd: debug 1 pid 13855 ruid 33 euid 33: start at Tue Jun 12 18:44:29 2007
amindexd: version 2.5.0p2
amindexd: < 220 host1 AMANDA index server (2.5.0p2) ready.
amindexd: > SECURITY USER root
bsd security: remote host virt1.stealth.com user root local user amanda
amindexd: < 500 Access not allowed
amindexd: [access as amanda not allowed from root@virt1.stealth.com: /var/lib/amanda/.amandahosts: incorrect permissions; file must be accessible only by its owner]



Check the permissions of the file /var/lib/amanda/.amandahosts. It should
have permissions 600 and should be owned by amanda

Paddy

protloc0
June 13th, 2007, 08:44 AM
Hi, thanks.
Yes has 777 permisions in /var/lib/amanda/.amandahost and is owned by amanda and is in the group of disk. What else can i do?

paddy
June 13th, 2007, 08:57 AM
Hi, thanks.
Yes has 777 permisions in /var/lib/amanda/.amandahost and is owned by amanda and is in the group of disk. What else can i do?


Make it 700

Paddy

protloc0
June 13th, 2007, 01:52 PM
thanks for ur reply..
now i got this! :(

[root@virt1 amanda]# amrecover -s host1.stealth.com
AMRECOVER Version 2.5.0p2. Contacting server on host1.stealth.com ...
220 host1 AMANDA index server (2.5.0p2) ready.
200 Access OK
Setting restore date to today (2007-06-13)
200 Working date set to 2007-06-13.
Scanning /dumps/amanda...
501 Index directory /etc/amanda/DailySet1/index does not exist
501 Must set config before setting host.
Trying host virt1.stealth.com ...
501 Must set config before setting host.
Trying host virt1 ...
501 Must set config before setting host.
amrecover>


IF im not wrong.. in the first amcheck, makes the /etc/amanda/DailySet1/index file..


Any suggestions ??
thanks :)