473,473 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

aspnet worker process to start .bat file

Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the app
needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
..bat file? Does the user need access to the WINNT\System32 directory or the
WINNT\System32\cmd.exe file?

any help appreciated.
Jul 21 '05 #1
9 3260
Hi Matt,

Have a look at this thread.

http://www.experts-exchange.com/Prog..._21038777.html

Hope this helps you.

Thanks
Raghavendra

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or the WINNT\System32\cmd.exe file?

any help appreciated.

Jul 21 '05 #2
Hi Matt,

also check this one

http://authors.aspalliance.com/das/wsh.aspx

Thanks
Raghavendra

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or the WINNT\System32\cmd.exe file?

any help appreciated.

Jul 21 '05 #3
Hi there,

Thankyou for your response. however, I cannot access the first article as it
is password protected?

"Raghavendra T V" wrote:
Hi Matt,

Have a look at this thread.

http://www.experts-exchange.com/Prog..._21038777.html

Hope this helps you.

Thanks
Raghavendra

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the

app
needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or

the
WINNT\System32\cmd.exe file?

any help appreciated.


Jul 21 '05 #4
I couldnt find much info on permissions in that article? I have run
sysinternals ntfilemon on the web server and have seen the following
w3wp.exe C:\windows\System32\cmd.exe ACCESS DENIED for user WEBFARM\IUSR_ALL

Does the IUSR_machinename account need access to this file? I wouldnt think
so as the .net worker process runs under the aspnet user.

"Raghavendra T V" wrote:
Hi Matt,

also check this one

http://authors.aspalliance.com/das/wsh.aspx

Thanks
Raghavendra

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the

app
needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or

the
WINNT\System32\cmd.exe file?

any help appreciated.


Jul 21 '05 #5
Looks like you are running IIS6 (W2K3) in native IIS6 mode, here the worker
process runs with the NETWORK_SERVICE identity not aspnet.
When anonymous access is enabled for this site/application (see IIS
webadmin) and you have set impersonation=true in your web.config, your
thread will run as the anonymous account specified in IIS. By default this
is IUSR_Machine.

Willy.
"Matt Calhoon" <ma**@community.nospam> wrote in message
news:6A**********************************@microsof t.com...
I couldnt find much info on permissions in that article? I have run
sysinternals ntfilemon on the web server and have seen the following
w3wp.exe C:\windows\System32\cmd.exe ACCESS DENIED for user
WEBFARM\IUSR_ALL

Does the IUSR_machinename account need access to this file? I wouldnt
think
so as the .net worker process runs under the aspnet user.

"Raghavendra T V" wrote:
Hi Matt,

also check this one

http://authors.aspalliance.com/das/wsh.aspx

Thanks
Raghavendra

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
> Hi there,
>
> I have specified a aspnet user account to run all .net sites. This
> account
> needs access to start a .BAT File (in my global.asax on session start
> the

app
> needs to execute this bat file). I have given the aspnet user Read and
> execute but the .bat will still not start.
>
> What specific permissions does this user need for other folders to
> start a
> .bat file? Does the user need access to the WINNT\System32 directory or

the
> WINNT\System32\cmd.exe file?
>
> any help appreciated.


Jul 21 '05 #6
Thanks for your reply.
I have specified the aspnet user in the default Application Pool Identity
section in IIS (originally it said Network_service). Each website runs under
this default application pool. I therefore assume that IIS runs under this
aspnet user?

Also I have not specified an identity=true in the web.config so it will be
the default (whatever is in the machine config).

"Willy Denoyette [MVP]" wrote:
Looks like you are running IIS6 (W2K3) in native IIS6 mode, here the worker
process runs with the NETWORK_SERVICE identity not aspnet.
When anonymous access is enabled for this site/application (see IIS
webadmin) and you have set impersonation=true in your web.config, your
thread will run as the anonymous account specified in IIS. By default this
is IUSR_Machine.

Willy.
"Matt Calhoon" <ma**@community.nospam> wrote in message
news:6A**********************************@microsof t.com...
I couldnt find much info on permissions in that article? I have run
sysinternals ntfilemon on the web server and have seen the following
w3wp.exe C:\windows\System32\cmd.exe ACCESS DENIED for user
WEBFARM\IUSR_ALL

Does the IUSR_machinename account need access to this file? I wouldnt
think
so as the .net worker process runs under the aspnet user.

"Raghavendra T V" wrote:
Hi Matt,

also check this one

http://authors.aspalliance.com/das/wsh.aspx

Thanks
Raghavendra

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
> Hi there,
>
> I have specified a aspnet user account to run all .net sites. This
> account
> needs access to start a .BAT File (in my global.asax on session start
> the
app
> needs to execute this bat file). I have given the aspnet user Read and
> execute but the .bat will still not start.
>
> What specific permissions does this user need for other folders to
> start a
> .bat file? Does the user need access to the WINNT\System32 directory or
the
> WINNT\System32\cmd.exe file?
>
> any help appreciated.


Jul 21 '05 #7
This blog entry may be able to help.
http://weblogs.asp.net/dburke/archiv.../05/47755.aspx

--- Nick

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or the WINNT\System32\cmd.exe file?

any help appreciated.

Jul 21 '05 #8
great link - thanks.

however all my settings are already done correctly as specified in this
article.

any other links?

"Nick Malik" wrote:
This blog entry may be able to help.
http://weblogs.asp.net/dburke/archiv.../05/47755.aspx

--- Nick

"Matt Calhoon" <ma**@community.nospam> wrote in message
news:80**********************************@microsof t.com...
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the

app
needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or

the
WINNT\System32\cmd.exe file?

any help appreciated.


Jul 21 '05 #9
I have read some iis documentation :
http://www.microsoft.com/windowsserv...rview/iis.mspx

and it states:

Command-line tools not accessible to Web users
Attackers often take advantage of command-line tools that are executable via
the Web server. In IIS 6.0, the command-line tools can’t be executed by the
Web server.

Maybe it is not possible in IIS 6 to execute a .bat file from asp.net?

"Matt Calhoon" wrote:
Hi there,

I have specified a aspnet user account to run all .net sites. This account
needs access to start a .BAT File (in my global.asax on session start the app
needs to execute this bat file). I have given the aspnet user Read and
execute but the .bat will still not start.

What specific permissions does this user need for other folders to start a
.bat file? Does the user need access to the WINNT\System32 directory or the
WINNT\System32\cmd.exe file?

any help appreciated.

Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load...
1
by: Mark | last post by:
Hi - I have the old problem of my asp.net worker process shooting up to 99% - at which point my asp.net web app stops running. My app reads rows from a sql server database table, and on the While...
5
by: hellrazor | last post by:
HI there, I am developing a client side app which requires me to launch another program when a user clicks a button on a web page. I thought I'd create an asp.net page (using c# ) to accomplish...
5
by: Brent Burkart | last post by:
What steps must I take to ensure that my application will be able to access network folders. I want to only use the ASPNET account, but I am not sure how this is done. Thanks, Brent
7
by: M. Simioni | last post by:
Hi, i'm always auditing ASPNET's account accesses on my webserver, a WIN2K_SP4 + IIS5 + SQLServer2K_SP3a machine. Nearly all the applications work correctly, but i constantly find a message in...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
10
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat...
1
by: Jason Huang | last post by:
Hi, I tested my ASPNet web application and then found it takes a long time to start at the first time. So I surfed the web and found using aspnet_compile method. When I execute the...
1
by: nicerun | last post by:
I'm using the Application_Start event at Global.asax.cs to invoke thread that do some job. I know that Application_Start event occurs when the very first request to Web Application received. -...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.