Amanda-Users

Re: Amanda and localhost definition?

2006-04-12 22:02:00
Subject: Re: Amanda and localhost definition?
From: stan <stanb AT panix DOT com>
To: Gene Heskett <gene.heskett AT verizon DOT net>
Date: Wed, 12 Apr 2006 20:58:46 -0400
On Wed, Apr 12, 2006 at 07:17:49PM -0400, Gene Heskett wrote:
> On Wednesday 12 April 2006 12:10, stan wrote:
> >On Wed, Apr 12, 2006 at 09:53:37AM -0400, Jon LaBadie wrote:
> >> On Wed, Apr 12, 2006 at 08:42:44AM -0400, stan wrote:
> >> > On Wed, Apr 12, 2006 at 01:42:17PM +0200, Paul Bijnens wrote:
> >> > > On 2006-04-12 12:27, stan wrote:
> >> > > >Again, I've never done that in the past. I've just made ceratin
> >> > > > that the amanda user exists,
> >> > > >and done the build/make install as root. Permissions have
> >> > > > alwasy been fine.
> >> > > >
> >> > > >Having sad that, I'll rebuild the whole thing today using
> >> > > > FQDB's, and building as amanda, then
> >> > > >installing as root.
> >> > >
> >> > > It is not important as who you build  -- root is no problem (but
> >> > > security minded sysadmins avoid doing things as root unless
> >> > > needed). But the "make install" should be done as root.
> >> > >
> >> > > Then subsequently, you should not RUN the program as root
> >> > > (except amrecover, which should be run as root), because when
> >> > > running the first time, Amanda creates some files.  When doing
> >> > > that as root - even only once - those files are owned by root
> >> > > instead of the amanda user and you run into trouble next time.
> >> >
> >> > Right, we are good on that.
> >> >
> >> > > >BTW, speaking of rebuilding amanda, it would be nice if there
> >> > > > were a "make no-overwrite
> >> > > >confgis" option.
> >> > >
> >> > > "make install" does not install, nor overwrite any config file.
> >> > > No need to disable that non-existing feature.
> >> >
> >> > I just foudn that out, to my pleasent suprise.
> >> >
> >> > In any case, I rebuilt uinsg FQDN's, and I still have these
> >> > problems, An amcheck reports:
> >>
> >> Did your rebuild also involve rerunning "configure"?
> >
> >Yes, esentialy "make distclean ; ./run_configure ; make ; su - make
> > install
> 
> Stan, see the script below.  You don't just "./configure" amanda, it 
> needs some arguments such as these in my script.
> 
> #!/bin/sh
> # since I'm always forgetting to su amanda...
> if [ `whoami` != 'amanda' ]; then
>       echo
>       echo "!!!!!!!!!!!! Warning !!!!!!!!!!!!"
>       echo "Amanda needs to be configured and built by the user amanda,"
>       echo "but must be installed by user root."
>       echo
>       exit 1
> fi
> make clean
> rm -f config.status config.cache
> ./configure --with-user=amanda \
>  --with-group=disk \
>  --with-owner=amanda \
>  --with-gnu-ld \
>  --prefix=/usr/local \
>  --with-tapedev="FILE:/amandatapes" \
>  --with-debugging=/tmp/amanda-dbg/ \
>  --with-tape-server=coyote \
>  --with-amandahosts \
>  --with-configdir=/usr/local/etc/amanda \
>  --with-config=Daily \
>  --with-gnutar=/usr/local/bin/tar
> 
> make
> =================
> Now obviously some of the above will need massaging in your favorite 
> editor, so check the accuracy of every line above to make sure its 
> right for *your* system.
> 
I know this thread has been draging on for days, so here is my configure script,
which was posted earlier in this thread BTW.



-- 
I know this thread has been draging on for days, so here is my configure script,
which was posted earlier in this thread BTW.

#!/bin/sh


./configure \
--with-config=DailyDump \
--prefix=/opt/amanda \
--with-index-server=amanda.meadwestvaco.com \
--with-user=amanda \
--with-group=operator \
--with-tape-server=amanda.meadwestvaco.com \
 --with-debugging \
 --with-tape-device=/dev/nst0 \
 --sbindir=/opt/amanda/sbin \
 --libexecdir=/opt/amanda/libexec \
 --libdir=/opt/amanda/lib \
 --with-configdir=/opt/amanda/etc \
 --with-gnutar-listdir=/opt/amanda/var/gnutar-lists \
 --mandir=/opt/amanda/man  \
 --without-rundump 


I did change to FQDN's from short host name.
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967