Re: How to non-trusted users write files to specific location
- From: "Roger Abell [MVP]" <mvpNoSpam@xxxxxxx>
- Date: Fri, 16 Dec 2005 01:52:08 -0700
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:
.
- Prev by Date: Re: Extracting information from secedit database files (sdb)
- Next by Date: PKI migration 32 Bit tot x64 Bit
- Previous by thread: Extracting information from secedit database files (sdb)
- Next by thread: PKI migration 32 Bit tot x64 Bit
- Index(es):
Relevant Pages
|
|