Re: Changing the default user
| From: | Alan Brown | Date: | Tue, 13 Nov 2001 17:36:03 +0000 |
| Subject: | Re: Changing the default user | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10386@lists.php.net to get a copy of this message | ||
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" <erik@butlerandco.com>
To: <php-windows@lists.php.net>
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: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>