I'm doing some modifications on amdump (I'll publish when done.). But there's
a part, that is confusing me:
###########################################################################
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" 1>&2
# exit 1
#fi ###########################################################################
First it is tried to figure out who started amdump (variable "runuser"). But
then the only part in that script where it is used is commented out.
My questions:
- Was the first part just forgotten to comment out, too?
- What were the reasons why the comparisation was taken out and let everybody
run it and not just dumpuser and root?
- Is there any reasons to let this two parts stay inside the script?
Regards
Marc
Marc.Muehlfeldmedizinische-genetik.de?Subject=Re%3AQuestion%20on%20unused%20part%20in%20amdump">
Reply to sender
|
amanda-hackers@yahoogroups.com?Subject= Re%3AQuestion%20on%20unused%20part%20in%20amdump">
Reply to group
|
Reply via web post
Messages in this topic
(1)