Apache Server configuration support - changing who my scripts are run as

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2006 > changing who my scripts are run as





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author changing who my scripts are run as
robertmarkbram@gmail.com

2006-08-18, 7:40 am

Hi All,

I am using Apache 2.0.55 for Windows. I am using Win XP.

I have a script in my cgi-bin dir that attempts to access directories:

echo -e "Content-type: text/html\n\n"
echo "<html>"
echo "<body>"
echo "<pre>"
echo "pwd: `pwd`"
echo "ls: `ls`"
echo "ls .: `ls .`"
echo "ls pwd: `ls pwd`"
echo "</pre>"
echo "</body>"
echo "</html>"

But the actual result was rather sparse:
pwd: /cygdrive/c/Program Files/Apache Group/Apache2/cgi-bin
ls:
ls .:
ls pwd:

I think this issue is due to the script being run as a user who doesn't
have the rights to do anything.. could this be so? If it is, how do I
change which user the script is run as?

Any advice would be most welcome!

Rob


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com