Amanda-Users

Re: Another Amanda + Win32 backup problem

2003-10-06 09:13:04
Subject: Re: Another Amanda + Win32 backup problem
From: Christopher Odenbach <odenbach AT hni.upb DOT de>
To: "Jason Tedesco" <jtedesco AT request.com DOT au>
Date: Mon, 6 Oct 2003 15:07:25 +0200
Hi,

> Thanks Chris it appears you have found my problem.
[...]
> After issuing strings /opt/amanda/libexec/sendbackup | grep
> amandapass it returns nothing.

I assume you have used your path in the statement above? /opt is not the 
default amanda directory.

> So back to compiling amanda.
> I have compiled amanda 2.4.4 and 2.4.4p1 with the following
> ./configure --with-smbclient=/usr/local/samba/bin/smbclient
> --with-user=operator --with-group=sys --with-config=SElvl0 --wit
> h-suffixes --with-libraries=/usr/local/lib
>
> After doing a make, I so another search for amandapass in sendbackup
>
> /amanda-2.4.4p1/client-src$ strings - sendbackup* |grep amandapass
                                   ^^^^^^

What is this hyphen doing there?

> Do you have any other suggestions?  Is there possibly something else
> I'm missing?

I just had a look at the sources here:

root@kanga[client-src]# grep amandapass *.c
findpass.c:  if ( (fp = fopen("/etc/amandapass", "r")) ) {
selfcheck.c:    testfd = open("/etc/amandapass", R_OK);
selfcheck.c:                printf("ERROR [/etc/amandapass is world 
readable!]\n");
selfcheck.c:                printf("OK [/etc/amandapass is readable, but 
not by all]\n");
selfcheck.c:            printf("OK [unable to stat /etc/amandapass: 
%s]\n",
selfcheck.c:        printf("ERROR [unable to open /etc/amandapass: 
%s]\n",

It looks as if the path "/etc/amandapass" is hard coded.

Christopher

-- 
======================================================
    Dipl.-Ing. Christopher Odenbach
    HNI Rechnerbetrieb
    odenbach AT uni-paderborn DOT de
    Tel.: +49 5251 60 6215
======================================================


<Prev in Thread] Current Thread [Next in Thread>