Re: Running a script from an ASP page
- From: "David Wang [Msft]" <someone@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Jan 2006 17:05:57 -0800
No, the account does not have to be admin.
If ProcessIdentity = LocalSystem, it should work for any authenticated user
(admin or non-admin).
This is due to CMD.EXE lockdown on Windows Server 2003.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Hunter" <Hunter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B20343A1-278A-4C48-8511-2C2EB1F881F7@xxxxxxxxxxxxxxxx
>I know the site uses the token of the user (if using windows
>authentication)
> or of the account given to the anonymous user to access cmd.exe. But does
> that account have to be an admin account? I can make the script work if
> an
> admin account is used for the anonymous user, but it does not work if I
> use a
> non-admin account and give it permissions it to the cmd.exe file.
>
> "David Wang [Msft]" wrote:
>
>> This is because:
>> 1. the batch file requires CMD.EXE to execute, so ACLs on it must be
>> accessible to the NT User token using ASPEXEC (depends on authentication
>> protocol)
>> 2. CMD.EXE has some new security checks which renders the CreateProcess()
>> call used by ASPEXEC to fail. I've only found it to work when:
>> - ProcessIdentity = LocalSystem
>> - ProcessIdentity = ImpersonatedIdentity
>>
>> --
>> //David
>> IIS
>> http://blogs.msdn.com/David.Wang
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> //
>>
>> "Hunter" <Hunter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:4FE3B2D0-4537-458A-A24C-EA0AB28DCBFB@xxxxxxxxxxxxxxxx
>> >I have a batch file that moves files from one server to another, and I'm
>> > calling it from an ASP page using ASPEXEC. It works when the app pool
>> > identity and the user on the site (or the credentials used for
>> > anonymous
>> > access) are admins on all servers. However, when either the app pool
>> > identity or the site user are not admins, the script will not execute.
>> > And I
>> > can find no errors on any of the servers being accessed.
>> >
>> > I would like to know when the site and batch file use the credentials
>> > of
>> > the
>> > app pool and when they use the credentials of the site user (if using
>> > windows
>> > authentication) or the anonymous user. Any ideas? Thanks.
>>
>>
>>
.
- Follow-Ups:
- Re: Running a script from an ASP page
- From: Hunter
- Re: Running a script from an ASP page
- References:
- Re: Running a script from an ASP page
- From: David Wang [Msft]
- Re: Running a script from an ASP page
- Prev by Date: Re: I need less IIS security to fwrite via PHP
- Next by Date: How do I reset ACL of C:\Inetpub\wwwroot
- Previous by thread: Re: Running a script from an ASP page
- Next by thread: Re: Running a script from an ASP page
- Index(es):
Relevant Pages
|