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 "anonymous access" and make sure that "Integrated Windows authentification" is checked. 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've got wrong. -----Original Message----- From: chris chia [mailto:hyperila@xxxxxxxxxxx] Sent: Saturday, September 29, 2007 4:58 AM To: php-windows@xxxxxxxxxxxxx Subject: 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 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 has any idea how I can approach 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. Version: 7.5.488 / Virus Database: 269.13.35/1040 - Release Date: 2007-09-30 21:01 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php