473,698 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Identity of asp_wp.exe

Hello!

How can I change the identity of asp_wp.exe (Asp.Net 2.0) process on Windows
2000 Server from ASPNET to LocalSystem?
I want to do it to bypass SeTcbPrivelege privelege problem.

Unfortunately, the method of changing asp_wp.exe identity described on
http://msdn2.microsoft.com/en-us/lib...hy(vs.80).aspx does not work.

Thank you in advance.
May 1 '07 #1
3 2968
re:
!Unfortunately, the method of changing asp_wp.exe identity described on
!http://msdn2.microsoft.com/en-us/lib...hy(vs.80).aspx does not work.

Yes, it does work. I've helped many people set up accounts using those instructions.
You can safely ignore the Application Pool instructions, since W2K doesn't use them.

re:
How can I change the identity of asp_wp.exe (Asp.Net 2.0) process on Windows 2000 Server from
ASPNET to LocalSystem?
Are you sure you don't mean the SYSTEM account ?

Besides impersonating the user, per the article :

<system.web>
<processModel enable="true"
userName="Syste m" />
</system.web>

The "System" account doesn't need a password.

Also, that only works in machine.config, not in web.config.

I'd avoid impersonating the ASP.NET process account in machine.config.

You should do it, for a particular application, in web.config :
<identity impersonate="tr ue" userName="accou ntname" password="passw ord" />

See:
http://support.microsoft.com/default.aspx/kb/306158

Additionally, run
aspnet_regiis -ga "MachineName\Ac count"

Additionally, make sure the following ACLs are set :
http://msdn2.microsoft.com/en-us/lib...1e(VS.80).aspx

Also, you don't have to run ASP.NET as the SYSTEM account. In fact, you should *avoid* it.
You can run ASP.NET as *any* account you want to, provided you assign the correct permissions.

If you want to go that way ( and you should ), follow the instructions at :
http://msdn2.microsoft.com/en-us/library/ms998297.aspx

....*and* run the steps detailed above.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Przemo Karlikowski" <ka************ ****@post.plwro te in message
news:OV******** ******@TK2MSFTN GP03.phx.gbl...
Hello!

How can I change the identity of asp_wp.exe (Asp.Net 2.0) process on Windows 2000 Server from
ASPNET to LocalSystem?
I want to do it to bypass SeTcbPrivelege privelege problem.

Unfortunately, the method of changing asp_wp.exe identity described on
http://msdn2.microsoft.com/en-us/lib...hy(vs.80).aspx does not work.

Thank you in advance.

May 1 '07 #2
I already had it in my machine.config:

<system.web>
<processModel enable="true" userName="Syste m" />
</system.web>

I also ran
aspnet_regiis -ga SYSTEM

But instead of killing aspnet_wp.exe I should have restarted whole IIS and
that was the issue.
Now it works.

I'm writing Asp.Net application that manages Windows accounts, and for
several reasons it needs to run on System account.
At least on Windows 2000.
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
re:
!Unfortunately, the method of changing asp_wp.exe identity described on
!http://msdn2.microsoft.com/en-us/lib...hy(vs.80).aspx does not
work.

Yes, it does work. I've helped many people set up accounts using those
instructions.
You can safely ignore the Application Pool instructions, since W2K doesn't
use them.

re:
>How can I change the identity of asp_wp.exe (Asp.Net 2.0) process on
Windows 2000 Server from ASPNET to LocalSystem?

Are you sure you don't mean the SYSTEM account ?

Besides impersonating the user, per the article :

<system.web>
<processModel enable="true"
userName="Syste m" />
</system.web>

The "System" account doesn't need a password.

Also, that only works in machine.config, not in web.config.

I'd avoid impersonating the ASP.NET process account in machine.config.

You should do it, for a particular application, in web.config :
<identity impersonate="tr ue" userName="accou ntname" password="passw ord" />

See:
http://support.microsoft.com/default.aspx/kb/306158

Additionally, run
aspnet_regiis -ga "MachineName\Ac count"

Additionally, make sure the following ACLs are set :
http://msdn2.microsoft.com/en-us/lib...1e(VS.80).aspx

Also, you don't have to run ASP.NET as the SYSTEM account. In fact, you
should *avoid* it.
You can run ASP.NET as *any* account you want to, provided you assign the
correct permissions.

If you want to go that way ( and you should ), follow the instructions at
:
http://msdn2.microsoft.com/en-us/library/ms998297.aspx

...*and* run the steps detailed above.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====

May 1 '07 #3
re:
Now it works.
Good news.

re:
!>I already had it in my machine.config:
!I'm writing Asp.Net application that manages Windows accounts, and for
!several reasons it needs to run on System account.

As long as you understand that, by putting that in machine.config,
*all* the applications which run on that server will run as the System account.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Przemo Karlikowski" <ka************ ****@post.plwro te in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>I already had it in my machine.config:

<system.web>
<processModel enable="true" userName="Syste m" />
</system.web>

I also ran
aspnet_regiis -ga SYSTEM

But instead of killing aspnet_wp.exe I should have restarted whole IIS and that was the issue.
Now it works.

I'm writing Asp.Net application that manages Windows accounts, and for several reasons it needs to
run on System account.
At least on Windows 2000.
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>re:
!Unfortunately , the method of changing asp_wp.exe identity described on
!http://msdn2.microsoft.com/en-us/lib...hy(vs.80).aspx does not work.

Yes, it does work. I've helped many people set up accounts using those instructions.
You can safely ignore the Application Pool instructions, since W2K doesn't use them.

re:
>>How can I change the identity of asp_wp.exe (Asp.Net 2.0) process on Windows 2000 Server from
ASPNET to LocalSystem?

Are you sure you don't mean the SYSTEM account ?

Besides impersonating the user, per the article :

<system.web>
<processModel enable="true"
userName="Syste m" />
</system.web>

The "System" account doesn't need a password.

Also, that only works in machine.config, not in web.config.

I'd avoid impersonating the ASP.NET process account in machine.config.

You should do it, for a particular application, in web.config :
<identity impersonate="tr ue" userName="accou ntname" password="passw ord" />

See:
http://support.microsoft.com/default.aspx/kb/306158

Additionally , run
aspnet_regii s -ga "MachineName\Ac count"

Additionally , make sure the following ACLs are set :
http://msdn2.microsoft.com/en-us/lib...1e(VS.80).aspx

Also, you don't have to run ASP.NET as the SYSTEM account. In fact, you should *avoid* it.
>You can run ASP.NET as *any* account you want to, provided you assign the correct permissions.

If you want to go that way ( and you should ), follow the instructions at :
http://msdn2.microsoft.com/en-us/library/ms998297.aspx

...*and* run the steps detailed above.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
============== =============== ======


May 1 '07 #4

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

Similar topics

5
4006
by: Eugene | last post by:
I have a table EugeneTest(id_num, fname, minit, lname) where field "id_num" is type IDENTITY and has UNIQUE constraint Let's say 2 user execute this code at the same time: DECLARE @return integer use EugeneTest INSERT employees ( fname, minit, lname) VALUES
4
41589
by: brent.ryan | last post by:
How do I get the next int value for a column before I do an insert in MY SQL Server 2000? I'm currently using Oracle sequence and doing something like: select seq.nextval from dual; Then I do my insert into 3 different table all using the same uniqueID. I can't use the @@identity function because my application uses a connection pool and it's not garanteed that a connection won't be used
1
1147
by: Donna | last post by:
How can I stop the asp_wp process on my computer? Each time I 'm stopping it in the taskmanager the process is started automatical again! Thanks Donna
0
1576
by: GregO | last post by:
Windows 2000 Server SP3 ..NET Framework 1.1 I have a problem opening the control panel on a number of servers. Only when we kill the asp_wp.exe does the control panel kick into life. Is it something to do with code? Service Packs? Privlages for the ASPNET user? Can anyone help?
8
9463
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
4
1402
by: Rich Denis | last post by:
Hello, We are having some issues with our .NET web applications. Every so often a computer will peg its CPU at 100% for some period of time. I am told anywhere between 30mins and 2 hours. I have seen some kb articles about asp_wp and 100% but I do not believe that is our issues. I am fairly certain that the probelm is caused by one of the applications running on the server. Ok so here are the questions. Are there any perfmons that...
1
1173
by: prem | last post by:
Hi, I need roles and activities of asp_wp.exe,aspnet_wp.exe and aspnet_isapi.dll. can any one please give description about how they are working and how they coordinate each other and when. Thanks in Advance. Regards, Prem.
7
1498
by: Danny Ni | last post by:
Hi, I inherited a web project from other programmer. I notice on my dev machine every time I request a page in IE or FF the CPU jumps to 100%, all utilized by asp_wp.exe. I did some researches on the web, somebody suggests this could be due to database connection not properly disposed. I happened to see the following code snippet in my web project:
8
1543
by: Nicolas | last post by:
Hi, I was suffering for few days, I has 1 asp.net application running in window xp. the application is used for generate the reports. The problem is, when i try to run a report is open many connection, it will show the following error... "An error has occurred while establishing a connection to the server. When connection to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow...
0
8675
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8862
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6521
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.