PHP SYSTEM() on IIS
am 29.09.2007 04:57:45 von chris chia
--_13e1d323-e37d-46ce-8725-0adc54e7f760_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
Hi all,I have a Windows server being run and logged in with an admin user A with all the necessary services running on the server.Our IIS has Anonymous Access of root network domain user B. And when I run a PHP script to use it SYSTEM() function to run the command 'whoami' in the shell (for e.g SYSTEM('whoami'))user A is provided. This means that PHP is running the process (system) under the same user. This is what we want. However if we run a SYSTEM('example.perl'), the child process (perl) is running as user SYSTEM.How can I make PHP run this process as user A instead of SYSTEM? I have asked for advice from Windows IIS developer and was told that it is not a problem from IIS server.I was told that ASP or ASP.net can change the ownership of any process running on the server, so anyone h
as any idea how I can approach this problem? Regards,Chris
____________________________________________________________ _____
Get the new Windows Live Messenger!
http://get.live.com/messenger/overview
--_13e1d323-e37d-46ce-8725-0adc54e7f760_--
RE: PHP SYSTEM() on IIS
am 01.10.2007 08:47:00 von Gustav Wiberg
Hi Chris!
As default a certain account is used. You have to chose the homepage in IIS=
you want this do be done with.
Right click the homepage, chose "Properties..." and you have a new dialog.
Then you have to look for the tab "Directory safety..." (I guess it is - I =
have swedish only) . And then click on the Edit... -button. Uncheck "anonym=
ous access" and make sure that "Integrated Windows authentification" is che=
cked.
Click Ok, and then it should work.
Best regards
/Gustav Wiberg
Ps. Because I have swedish version only, there might be some words that I'v=
e got wrong.
-----Original Message-----
From: chris chia [mailto:hyperila@hotmail.com]=20
Sent: Saturday, September 29, 2007 4:58 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP SYSTEM() on IIS
Hi all,I have a Windows server being run and logged in with an admin user A=
with all the necessary services running on the server.Our IIS has Anonymou=
s Access of root network domain user B. And when I run a PHP script to use=
it SYSTEM() function to run the command 'whoami' in the shell (for e.g SYS=
TEM('whoami'))user A is provided. This means that PHP is running the proces=
s (system) under the same user. This is what we want. However if we run a =
SYSTEM('example.perl'), the child process (perl) is running as user SYSTEM.=
How can I make PHP run this process as user A instead of SYSTEM? I have ask=
ed for advice from Windows IIS developer and was told that it is not a prob=
lem from IIS server.I was told that ASP or ASP.net can change the ownership=
of any process running on the server, so anyone has any idea how I can app=
roach this problem? Regards,Chris
____________________________________________________________ _____
Get the new Windows Live Messenger!
http://get.live.com/messenger/overview
No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.488 / Virus Database: 269.13.35/1040 - Release Date: 2007-09-3=
0 21:01
=20
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php