Re: FolderExists and UNC path
- From: "Joe Fawcett" <joefawcett@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 Jul 2008 08:08:23 +0100
Traditionally ASP uses the IUSR_<machinename> account so try mapping a drive using that username and password or assigning permissions to that account or changing to a different one if you don't know or can't change the password. (It's also difficult giving permissions on a remote machine to a local account, you need to create one on the remote machine with identical name and password.)
When you've sorted out what's happening you can decide how to proceed bearing in mind that giving the ASP account higher privileges can be dangerous from a security stand point.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
"Claudio" <cschmid@xxxxxxxxx> wrote in message news:c7254eff-d666-4bc7-93aa-1008b53ce5ad@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,.
When I ran this command from the server logged with my user it
works, when I ran this command form my PC too.
The problem is when I ran the asp page from my PC using an Internet
Explorer.
I post the problem here, (not in the ASP group) becouse I think
that the problem is related to vbscript code or permissions.
Thanks
On 23 jul, 11:54, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:<csch...@xxxxxxxxx> wrote in message
news:d24db7dc-8b7c-4b0c-b2cb-8671726f9d7e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
> I have the follow situation:
> In may Server A i have test asp page with the following code
> <%
> mImportDirectory = "\\BAIVMAST3\cvmData$"
> set fso = Server.CreateObject("Scripting.FileSystemObject")
> response.write mImportDirectory"="&fso.FolderExists(mImportDirectory)
> %>
> when I test the page into the server with my user, the result of
> FolderExists is "True", but when I test it from another PC (not the
> server), the result is "False".
> The share permissions and the security permissions on \
> \BAIVMAST3\cvmData$ is everybody fullcontrol.
> The IIS site is seted to use the Integrated Windows security, so in
> both case my username of windows was used.
> Any idea?
> Thanks
What happens when you type these commands from a Command Prompt?
dir \\BAIVMAST3\cvmData$
if exist \\BAIVMAST3\cvmData$ (echo Folder found) else (echo Folder not
found)- Ocultar texto de la cita -
- Mostrar texto de la cita -
- Follow-Ups:
- Re: FolderExists and UNC path
- From: Claudio
- Re: FolderExists and UNC path
- References:
- FolderExists and UNC path
- From: cschmid
- Re: FolderExists and UNC path
- From: Pegasus \(MVP\)
- Re: FolderExists and UNC path
- From: Claudio
- FolderExists and UNC path
- Prev by Date: Re: Count lines in another VBS file
- Next by Date: Re: ListInstalledInstance method of SQLDMO.SQLServer2 object
- Previous by thread: Re: FolderExists and UNC path
- Next by thread: Re: FolderExists and UNC path
- Index(es):
Relevant Pages
|