>spindletop 46% ./amdump DailySet1
>amdump: must be run as user backup
>spindletop 47% whoami
>backup
>
>what's the meaning of this?
That you're not who you think you are? :-)
It's harder than you think for a script to find out who it is running
as, and amdump used to have problems with this. You didn't mention what
version of Amanda you're running, but here's the latest snippet of 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
Save a copy of amdump in case things go bad, then find the assignment
to runuser in your version, and replace it through the error message
with the above, then try that.
>Nupur
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]