Re: How to non-trusted users write files to specific location



If the script is being run by IIS then it is running in context of
one of the IIS i*_machine accounts if the browsing user is
anonymous to IIS. If IIS is on server outside of domain where
the UNC accessed share is then the IIS cannot authenticate to
that sharing server. If that is the case, you either must enable
guest and grant guest the needed share and ntfs permissions for
the share, or you need to allow anonymous (you seem to be
overlooking the allowed anonymous shares security policy in
group policy's security options section).

"chessexpert" <chessexpert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C01D27C6-1E71-4C37-9E40-9E251912F8FF@xxxxxxxxxxxxxxxx
>I wrote a vbscript that asks users for certain input, then writes the file
>to
> a server. It works fine as long as the users are in the same domain. They
> can
> go to http page and click the link; the script begins to run, but then
> gives
> "Logon failure: unknown user name or bad password" at the part where a
> file
> must be written. I do not want to force users outside of the main domain
> to
> have to authenticate. I have opened up NTFS permissions; everyone full
> control, anonymous internet account has modify rights, even tried setting
> network to modify rights, but it still gives access denied. IIS settings
> are
> working as they person can run the script.
>
> Set fso = CreateObject("Scripting.FileSystemObject")
> Set outputfile = fso.createTextFile("\\server\path\user.txt")
>
> I could not change the unc path for an HTTP path (did not work).
>
> How can I set it up so that everyone who runs the script will have rights
> to
> a specific location without having to type in account and password? Here
> is
> the part of the vbscript that it stops on:


.



Relevant Pages

  • Re: Execute Access Forbidden
    ... I have selected SCRIPT ONLY and tried EXECUTABLES ... IUSR_computername account when executing web page scripts. ... Use the IIS MMC to look at the "Application Isolation" properties of the ... using the IWAM account if the "Application Isolation" setting for the script ...
    (microsoft.public.inetserver.iis.security)
  • Re: HTTP 401.1 - Unauthorized: Logon Failed
    ... What are the minimum or default NTFS file permissions required for IIS, ... I'm having a problem with the IUSR_computername or IWAM_computername account ... folder containing the troubled script files. ... using the IWAM account if the "Application Isolation" setting for the script ...
    (microsoft.public.inetserver.iis.security)
  • Re: IWAM Out of sync
    ... IWAM password, shouldn´t we run the SYNCIWAM.Vbs script from Adminscripts ... I think I did this the last time: Change Password on account, ... > on my computer or IIS web server, or the account keeps getting locked out. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Secured IIS Project - IIS 4.0 Secure Script
    ... Secured IIS Project - IIS 4.0 Secure Script ... Machines which were upgraded from IIS 2.0 (original NT installation), ... Remove FTP Service ...
    (NT-Bugtraq)
  • Re: INETINFO and ASP Trouble
    ... seeing many IIS and ASP errors in the event log, ... > Event Type: Error ... > Event Source: Service Control Manager ... IIS log failed to write entry, Script timed out. ...
    (microsoft.public.inetserver.iis)