Re: Writing to Mapped Drive : Permission Denied

From: Date: Tue, 17 Apr 2001 14:26:45 +0000
Subject: Re: Writing to Mapped Drive : Permission Denied
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6813@lists.php.net to get a copy of this message
Paul, Your problem is related to the permissions of the IIS service, which is supposed to run with user IUSR_*** (don't remember the exact name) on NT/2000. When PHP tries to access a resource it must be accessible to this account. You have to check permissions on the network drive for this user. Also, I suppose that it is a local user to the system on which IIS runs. Hope it helps. Joao Santos Antunes ----- Original Message ----- From: "Paul Wieland" <Paul.Wieland@us.atlascopco.com> To: <php-windows@lists.php.net> Sent: Monday, April 16, 2001 3:03 PM Subject: [PHP-WIN] Writing to Mapped Drive : Permission Denied > Warning: fopen("U:\filename.txt","w+") - Permission denied in D: > \wwwroot\somepath\more\thescript.php > > I'm having this terrible problem writing a file to a drive that is mapped > by the server. I'm not even sure its a PHP problem, but my perl scripts > don't seem to have any trouble with it. > IIS 5, PHP 4, Win2k > The script runs under a virtual directory that has NT Authentication > checked, Anonymous Access unchecked [so the REMOTE_USER server variable is > available to the php scripts]. The drive is mapped to a folder on another > server that gives Guest and Everyone "Full Control". If you run the script > from the server [from the servers web browser], it works perfectly. The > server is logged in as Domain Admin, but no matter how I try to access the > script from a workstation - even as Domain Admin, I still get an error. I > am able to write files to the mapped directory from a workstation using > explorer. When Anonymous Access is on, it works fine but I am unable to > use the REMOTE_USER variable. > > Is there a way to write files to a mapped directory with "Anonymous Access" > turned off? > > Thanks in advance, > -Paul Wieland > > > -- > 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 > >

« previous php.windows (#6813) next »