On Tuesday, July 20, 2010 05:10:43 pm Dustin J. Mitchell did opine:
> On Tue, Jul 20, 2010 at 4:36 PM, Gene Heskett <[email protected]>
wrote:
> > So where do I actually start so I can play the canary again?
>
> Maybe you have selinux enabled? Selinux only has two modes:
>
> "disabled" and "broken".
ROTFLMAO! Absolutely a correct description. Lemme check, but I don't
think so. No, I can't find any evidence of it in the htop output unless its
been renamed to hide it from the user. With me being behind a router that
isn't issue from the provider, dd-wrt, I haven't ever felt the need for
what selinux supposedly offers and when it has been installed, its been a
continuous headache. I can't see anything related to it in /etc either.
> This is the error to fix:
> > mkdir: cannot create directory `/root/tmp/cg6200-9692': Permission
> > denied
But why should it even be trying to use a path starting with "/root"? That
part of the script is running as the user amanda.
Here is the newmanda script:
#!/bin/bash
VER=${1}
echo $VER
VER2=${1}.tar.gz
echo $VER2
rm -fR $VER
su amanda -c "tar xzf $VER2" && \
su amanda -c "cp gh.cf $VER/" && \
cd $VER && \
su amanda -c "./gh.cf" && \
make install && \
su amanda -c "amcheck Daily"
And here is the gh.cf 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"
echo "user amanda, 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=adm \
--with-owner=amanda \
--with-gnu-ld \
--prefix=/usr/local/ \
--with-debugging=/tmp/amanda-dbg/ \
--with-tape-server=coyote \
--with-bsdtcp-security --with-amandahosts \
--with-configdir=/usr/local/etc/amanda \
--with-config=Daily \
--with-gnutar=/bin/tar
echo "sleeping 15 seconds for reading configures warnings"
echo "a make as amanda will continue after..."
sleep 15
make
And I probably don't have the ~/.amandahosts file chmod'd yet either.
Call me puzzled.
> the rest are just consequences of that error.
>
> Dustin
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The main problem I have with cats is, they're not dogs.
-- Kevin Cowherd