Permissions on Server 2003
am 10.10.2007 23:01:40 von Alexis
Hi,
I am trying to read the contents of a directory on a Server 2003 network.
I have removed the 'General Users' from the set of permissions on the
directory, as only the owner of the directory is allowed to access it.
In this case myself.
Now by doing this I am obviously stopping PHP scripts from accessing
this directory. How can I get around this? Can I pass the Username and
password through the scripting, or do I need to set up a new user group
and assign it to the PHP scripts as it were. In either case how would I
go about doing it?
TIA
Alexis
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Permissions on Server 2003
am 10.10.2007 23:38:43 von Gustav Wiberg
Hi Alexis!
As default there is two users assigned as anynomous users for Internet. the
default is IUSR_ (and there is also IWAM_ but this is more
for service-processing than administration of rights)
Set the permissions of this user to read in the directory you want to read
content from.
Best regards
/Gustav Wiberg
----- Original Message -----
From: "Alexis"
To:
Sent: Wednesday, October 10, 2007 11:01 PM
Subject: [PHP-WIN] Permissions on Server 2003
> Hi,
>
> I am trying to read the contents of a directory on a Server 2003 network.
>
> I have removed the 'General Users' from the set of permissions on the
> directory, as only the owner of the directory is allowed to access it. In
> this case myself.
>
> Now by doing this I am obviously stopping PHP scripts from accessing this
> directory. How can I get around this? Can I pass the Username and password
> through the scripting, or do I need to set up a new user group and assign
> it to the PHP scripts as it were. In either case how would I go about
> doing it?
>
>
> TIA
> Alexis
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Permissions on Server 2003
am 11.10.2007 03:48:29 von Jeff White
Hello Alexis,
I use PHP on our LAN at work using Windows authentication. If you want to
restrict HTTP access to the directory using Windows permissions you'll have
to:
1. Uncheck the Anonymous user authentication in IIS (in IIS 5.1: site
properties > "Directory Security" > "Anonymous access and authentication
control" > "Edit").
2. Check "Integrated Windows Authentication" in the lower part of the
dialog. That will allow users to run the PHP script in the security context
of their username.
3. Set permissions on the folder or files to whomever's account or groups
you wish.
4. Use the Windows domain name account (username only, no passwords) in PHP
for authentication to the folders/files possibly using a (My)SQL database or
(maybe) through LDAP. I can't confirm the LDAP method as I've not had much
success using Active Directory with PHP, but only read of it.
I hope this helps your situation.
Jw
-----Original Message-----
From: Alexis [mailto:phpinfo@antonakis.co.uk]
Sent: Wednesday, October 10, 2007 5:02 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Permissions on Server 2003
Hi,
I am trying to read the contents of a directory on a Server 2003 network.
I have removed the 'General Users' from the set of permissions on the
directory, as only the owner of the directory is allowed to access it.
In this case myself.
Now by doing this I am obviously stopping PHP scripts from accessing
this directory. How can I get around this? Can I pass the Username and
password through the scripting, or do I need to set up a new user group
and assign it to the PHP scripts as it were. In either case how would I
go about doing it?
TIA
Alexis
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php