>amcheck reports all is good!  ...

That's a **very** good sign.  You're well on your way.

>I get this error when running amdump..
>
># su backup -c "/usr/sbin/amdump DailySet1"
>amdump: must be run as user backup

There were numerous problems with this a while back.  I'm pretty sure
the latest sources (2.4.2p2) have fixed them.  If you can't (or don't
want to) upgrade, here's the new code:

runuser=`{ whoami ; } 2>/dev/null`
if [ $? -ne 0 ]; then
        idinfo=`{ id ; } 2>/dev/null`
        if [ $? -ne 0 ]; then
                runuser=${LOGNAME:-"??unknown??"}
        else
                runuser=`echo $idinfo | sed -e 's/).*//' -e 's/^.*(//'`
        fi
fi

if [ $runuser != $dumpuser ]; then
        echo "amdump: must be run as user $dumpuser, not $runuser"
        exit 1
fi

Just find the similar stuff in your amdump script and replace the tests.

Or you could get the latest release and just get the amdump script
from it.  I don't think anything else has changed, so it should work
fine with your slightly older system.

>Bob

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to