It is actually quite simple:

Solution 1) Put ACLs on the .php files and IIS will request authentication.
After authentication, the script runs as the authenticated user.

If this is not desirable:

Solution 2) Go into the configuration for the the site (or virtual
directory) and select the "Directory Security" tab, Edit the "Anonymous
access and authentication control" settings, and chnagethe anonymous user
name and supply a password. This solution requires some up front thought.
You may not want the entire site to use a privileged account - so perhaps
this needs to be on just a virtual subtree of the site.

Or a particularly bad solution:

Solution 3) There are ways to change users with tools such as "su" - but
this forces PHP to be in CGI mode and the need for clear text passwords in
an on disk file somewhere and that will almost certainly not be desirable.

Alan.

----- Original Message -----
From: "Erik H. Mathy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 10:45
Subject: RE: [PHP-WIN] Changing the default user


> Hi Daniel!
>
> > Can anyone tell me how to run php.exe as a user other than
> > IUSR_<server>?
>
> I was looking into this recently myself. You'd think this would be an
easy,
> logical thing to do. Unfortunately, I could not find any solutions. I
looked
> in  the MSDN Library and everywhere I could on the 'net.
>
> If I do find anything, I'll make sure to let you know.
>
> - Erik
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to