List Info

Thread: Digest Number 1259




Digest Number 1259
country flaguser name
United States
2007-09-06 08:27:42

Messages In This Digest (1 Message)

1.
Question on unused part in amdump From: Marc Muehlfeld

Message

1.

Question on unused part in amdump

Posted by: "Marc Muehlfeld" Marc.Muehlfeldmedizinische-genetik.de?Subject= Re%3AQuestion%20on%20unused%20part%20in%20amdump"> Marc.Muehlfeldmedizinische-genetik.de

Thu Sep 6, 2007 1:19 am (PST)

Hi,

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

Recent Activity
Visit Your Group
Fitness Zone

on Yahoo! Groups

Find Groups all

about healthy living.

Sitebuilder

Build a web site

quickly & easily

with Sitebuilder.

Find Enlightenment

Yoga groups and

resources on

Yahoo! Groups.

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )