473,564 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Identity System

Hi,

How can i get my ASP Page or Web Service to run as the LocalSystem rather
than a user?

cheers
Nov 17 '05 #1
7 1404
The default user for all apps is set in your machine.config file in your
local .NET installation folder (in a folder called config). If you look in
that file, in the <processModel > section user="machine" is pry what is set
right now. You can change that to SYSTEM as you want, but it is highly
recommended you don't do that (for security reasons). But it's your call.

In addition, I'm not sure, you may be able to define this in your local
web.config also, and thus override the machine.config setting. Haven't
investigated that myself, so dunno if you can do on an app by app basis...

Another alternative is to use impersonation, and set the user you want all
visitors to run under....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
news:uB******** ******@tk2msftn gp13.phx.gbl...
Hi,

How can i get my ASP Page or Web Service to run as the LocalSystem rather
than a user?

cheers

Nov 17 '05 #2
Hi,

I think what you meant is ASP.NET impersonation.

You could add a line in web.config to run an application as a configurable identity. For example:

<identity impersonate="tr ue" userName="conto so\Jane" password="pass"/>

Please refer to http://msdn.microsoft.com/library/en...asp?frame=true for details.

Thanks very much.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Craig Deelsnyder" <cd******@NOSPA Myahoo.com>
!References: <uB************ **@tk2msftngp13 .phx.gbl>
!Subject: Re: Identity System
!Date: Sun, 27 Jul 2003 20:26:12 -0500
!Lines: 30
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <#7************ **@TK2MSFTNGP12 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: c-66-41-16-200.mn.client2. attbi.com 66.41.16.200
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1624 83
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!The default user for all apps is set in your machine.config file in your
!local .NET installation folder (in a folder called config). If you look in
!that file, in the <processModel > section user="machine" is pry what is set
!right now. You can change that to SYSTEM as you want, but it is highly
!recommended you don't do that (for security reasons). But it's your call.
!
!In addition, I'm not sure, you may be able to define this in your local
!web.config also, and thus override the machine.config setting. Haven't
!investigated that myself, so dunno if you can do on an app by app basis...
!
!Another alternative is to use impersonation, and set the user you want all
!visitors to run under....
!
!--
!Craig Deelsnyder
!Microsoft MVP - ASP/ASP.NET
!
!
!"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
!news:uB******* *******@tk2msft ngp13.phx.gbl.. .
!> Hi,
!>
!> How can i get my ASP Page or Web Service to run as the LocalSystem rather
!> than a user?
!>
!> cheers
!>
!>
!
!
!
Nov 17 '05 #3
One other thing....

how to i get my application to run with the rights of the local system
account? What would i enter in the username & password (in the web.config
file).

again....many thanks

Arran

"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:PP******** ******@cpmsftng xa06.phx.gbl...
Hello Arran,

You are welcome. Thanks very much for participating the community.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!References: <uB************ **@tk2msftngp13 .phx.gbl> <#7************ **@TK2MSFTNGP12 .phx.gbl> <Tm************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: Identity System
!Date: Tue, 29 Jul 2003 08:50:15 +0100
!Lines: 88
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!Message-ID: <#s************ **@TK2MSFTNGP09 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: 212.219.119.220
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1629 08 !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!Thanks for the info.
!
!
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:Tm******* *******@cpmsftn gxa06.phx.gbl.. .
!> Hi,
!>
!> I think what you meant is ASP.NET impersonation.
!>
!> You could add a line in web.config to run an application as a configurable !identity. For example:
!>
!> <identity impersonate="tr ue" userName="conto so\Jane" password="pass"/>
!>
!> Please refer to
!http://msdn.microsoft.com/library/en...netimpersonati
o !n.asp?frame=tr ue for details.
!>
!> Thanks very much.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Craig Deelsnyder" <cd******@NOSPA Myahoo.com>
!> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!> !Subject: Re: Identity System
!> !Date: Sun, 27 Jul 2003 20:26:12 -0500
!> !Lines: 30
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!> !Message-ID: <#7************ **@TK2MSFTNGP12 .phx.gbl>
!> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !NNTP-Posting-Host: c-66-41-16-200.mn.client2. attbi.com 66.41.16.200
!> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!> !Xref: cpmsftngxa06.ph x.gbl
!microsoft.publ ic.dotnet.frame work.aspnet:162 483
!> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !
!> !The default user for all apps is set in your machine.config file in your !> !local .NET installation folder (in a folder called config). If you look !in
!> !that file, in the <processModel > section user="machine" is pry what is
!set
!> !right now. You can change that to SYSTEM as you want, but it is highly !> !recommended you don't do that (for security reasons). But it's your
!call.
!> !
!> !In addition, I'm not sure, you may be able to define this in your local !> !web.config also, and thus override the machine.config setting. Haven't !> !investigated that myself, so dunno if you can do on an app by app
!basis...
!> !
!> !Another alternative is to use impersonation, and set the user you want
!all
!> !visitors to run under....
!> !
!> !--
!> !Craig Deelsnyder
!> !Microsoft MVP - ASP/ASP.NET
!> !
!> !
!> !"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
!> !news:uB******* *******@tk2msft ngp13.phx.gbl.. .
!> !> Hi,
!> !>
!> !> How can i get my ASP Page or Web Service to run as the LocalSystem
!rather
!> !> than a user?
!> !>
!> !> cheers
!> !>
!> !>
!> !
!> !
!> !
!>
!>
!
!
!

Nov 17 '05 #4
Hello Arran,

Craig has provided the answer already. :)

Please look in machine.confign file in C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config folder, in the
<processModel > section user="machine" is what is set right now. You can change that to SYSTEM as you want, but it is not
recommended sicne asp.net app will running under a more powerful account.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!References: <uB************ **@tk2msftngp13 .phx.gbl> <#7************ **@TK2MSFTNGP12 .phx.gbl>
<Tm************ **@cpmsftngxa06 .phx.gbl> <#s************ **@TK2MSFTNGP09 .phx.gbl>
<PP************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: Identity System
!Date: Wed, 30 Jul 2003 00:35:35 +0100
!Lines: 145
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <er************ **@TK2MSFTNGP11 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworl d.com 213.122.6.143
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1631 81
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!One other thing....
!
!how to i get my application to run with the rights of the local system
!account? What would i enter in the username & password (in the web.config
!file).
!
!again....many thanks
!
!Arran
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:PP******* *******@cpmsftn gxa06.phx.gbl.. .
!> Hello Arran,
!>
!> You are welcome. Thanks very much for participating the community.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!<#7*********** ***@TK2MSFTNGP1 2.phx.gbl>
!> <Tm************ **@cpmsftngxa06 .phx.gbl>
!> !Subject: Re: Identity System
!> !Date: Tue, 29 Jul 2003 08:50:15 +0100
!> !Lines: 88
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <#s************ **@TK2MSFTNGP09 .phx.gbl>
!> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !NNTP-Posting-Host: 212.219.119.220
!> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
!> !Xref: cpmsftngxa06.ph x.gbl
!microsoft.publ ic.dotnet.frame work.aspnet:162 908
!> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !
!> !Thanks for the info.
!> !
!> !
!> !
!> !"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!> !news:Tm******* *******@cpmsftn gxa06.phx.gbl.. .
!> !> Hi,
!> !>
!> !> I think what you meant is ASP.NET impersonation.
!> !>
!> !> You could add a line in web.config to run an application as a
!configurable
!> !identity. For example:
!> !>
!> !> <identity impersonate="tr ue" userName="conto so\Jane" password="pass"/>
!> !>
!> !> Please refer to
!>
!!http://msdn.microsoft.com/library/en...netimpersonati
!o
!> !n.asp?frame=tr ue for details.
!> !>
!> !> Thanks very much.
!> !>
!> !> Best regards,
!> !> Yanhong Huang
!> !> Microsoft Online Partner Support
!> !>
!> !> Get Secure! - www.microsoft.com/security
!> !> This posting is provided "AS IS" with no warranties, and confers no
!> !rights.
!> !>
!> !> --------------------
!> !> !From: "Craig Deelsnyder" <cd******@NOSPA Myahoo.com>
!> !> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!> !> !Subject: Re: Identity System
!> !> !Date: Sun, 27 Jul 2003 20:26:12 -0500
!> !> !Lines: 30
!> !> !X-Priority: 3
!> !> !X-MSMail-Priority: Normal
!> !> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!> !> !Message-ID: <#7************ **@TK2MSFTNGP12 .phx.gbl>
!> !> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2. attbi.com 66.41.16.200
!> !> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!> !> !Xref: cpmsftngxa06.ph x.gbl
!> !microsoft.publ ic.dotnet.frame work.aspnet:162 483
!> !> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !
!> !> !The default user for all apps is set in your machine.config file in
!your
!> !> !local .NET installation folder (in a folder called config). If you
!look
!> !in
!> !> !that file, in the <processModel > section user="machine" is pry what is
!> !set
!> !> !right now. You can change that to SYSTEM as you want, but it is
!highly
!> !> !recommended you don't do that (for security reasons). But it's your
!> !call.
!> !> !
!> !> !In addition, I'm not sure, you may be able to define this in your
!local
!> !> !web.config also, and thus override the machine.config setting.
!Haven't
!> !> !investigated that myself, so dunno if you can do on an app by app
!> !basis...
!> !> !
!> !> !Another alternative is to use impersonation, and set the user you want
!> !all
!> !> !visitors to run under....
!> !> !
!> !> !--
!> !> !Craig Deelsnyder
!> !> !Microsoft MVP - ASP/ASP.NET
!> !> !
!> !> !
!> !> !"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
!> !> !news:uB******* *******@tk2msft ngp13.phx.gbl.. .
!> !> !> Hi,
!> !> !>
!> !> !> How can i get my ASP Page or Web Service to run as the LocalSystem
!> !rather
!> !> !> than a user?
!> !> !>
!> !> !> cheers
!> !> !>
!> !> !>
!> !> !
!> !> !
!> !> !
!> !>
!> !>
!> !
!> !
!> !
!>
!>
!
!
!
Nov 17 '05 #5
So i have to change it for the whole server. I cant just change it for one
application?

sorry if i am being very stupid here.

thanks

Arran

"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:2p******** ******@cpmsftng xa06.phx.gbl...
Hello Arran,

Craig has provided the answer already. :)

Please look in machine.confign file in C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config folder, in the <processModel > section user="machine" is what is set right now. You can change that to SYSTEM as you want, but it is not recommended sicne asp.net app will running under a more powerful account.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!References: <uB************ **@tk2msftngp13 .phx.gbl> <#7************ **@TK2MSFTNGP12 .phx.gbl> <Tm************ **@cpmsftngxa06 .phx.gbl> <#s************ **@TK2MSFTNGP09 .phx.gbl> <PP************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: Identity System
!Date: Wed, 30 Jul 2003 00:35:35 +0100
!Lines: 145
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <er************ **@TK2MSFTNGP11 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworl d.com 213.122.6.143 !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1631 81 !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!One other thing....
!
!how to i get my application to run with the rights of the local system
!account? What would i enter in the username & password (in the web.config !file).
!
!again....many thanks
!
!Arran
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:PP******* *******@cpmsftn gxa06.phx.gbl.. .
!> Hello Arran,
!>
!> You are welcome. Thanks very much for participating the community.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!<#7*********** ***@TK2MSFTNGP1 2.phx.gbl>
!> <Tm************ **@cpmsftngxa06 .phx.gbl>
!> !Subject: Re: Identity System
!> !Date: Tue, 29 Jul 2003 08:50:15 +0100
!> !Lines: 88
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <#s************ **@TK2MSFTNGP09 .phx.gbl>
!> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !NNTP-Posting-Host: 212.219.119.220
!> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
!> !Xref: cpmsftngxa06.ph x.gbl
!microsoft.publ ic.dotnet.frame work.aspnet:162 908
!> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !
!> !Thanks for the info.
!> !
!> !
!> !
!> !"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!> !news:Tm******* *******@cpmsftn gxa06.phx.gbl.. .
!> !> Hi,
!> !>
!> !> I think what you meant is ASP.NET impersonation.
!> !>
!> !> You could add a line in web.config to run an application as a
!configurable
!> !identity. For example:
!> !>
!> !> <identity impersonate="tr ue" userName="conto so\Jane" password="pass"/> !> !>
!> !> Please refer to
!>
!!http://msdn.microsoft.com/library/en...pnetimpersonat
i !o
!> !n.asp?frame=tr ue for details.
!> !>
!> !> Thanks very much.
!> !>
!> !> Best regards,
!> !> Yanhong Huang
!> !> Microsoft Online Partner Support
!> !>
!> !> Get Secure! - www.microsoft.com/security
!> !> This posting is provided "AS IS" with no warranties, and confers no
!> !rights.
!> !>
!> !> --------------------
!> !> !From: "Craig Deelsnyder" <cd******@NOSPA Myahoo.com>
!> !> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!> !> !Subject: Re: Identity System
!> !> !Date: Sun, 27 Jul 2003 20:26:12 -0500
!> !> !Lines: 30
!> !> !X-Priority: 3
!> !> !X-MSMail-Priority: Normal
!> !> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!> !> !Message-ID: <#7************ **@TK2MSFTNGP12 .phx.gbl>
!> !> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2. attbi.com 66.41.16.200
!> !> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl !> !> !Xref: cpmsftngxa06.ph x.gbl
!> !microsoft.publ ic.dotnet.frame work.aspnet:162 483
!> !> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !
!> !> !The default user for all apps is set in your machine.config file in
!your
!> !> !local .NET installation folder (in a folder called config). If you
!look
!> !in
!> !> !that file, in the <processModel > section user="machine" is pry what is !> !set
!> !> !right now. You can change that to SYSTEM as you want, but it is
!highly
!> !> !recommended you don't do that (for security reasons). But it's your !> !call.
!> !> !
!> !> !In addition, I'm not sure, you may be able to define this in your
!local
!> !> !web.config also, and thus override the machine.config setting.
!Haven't
!> !> !investigated that myself, so dunno if you can do on an app by app
!> !basis...
!> !> !
!> !> !Another alternative is to use impersonation, and set the user you want !> !all
!> !> !visitors to run under....
!> !> !
!> !> !--
!> !> !Craig Deelsnyder
!> !> !Microsoft MVP - ASP/ASP.NET
!> !> !
!> !> !
!> !> !"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
!> !> !news:uB******* *******@tk2msft ngp13.phx.gbl.. .
!> !> !> Hi,
!> !> !>
!> !> !> How can i get my ASP Page or Web Service to run as the LocalSystem !> !rather
!> !> !> than a user?
!> !> !>
!> !> !> cheers
!> !> !>
!> !> !>
!> !> !
!> !> !
!> !> !
!> !>
!> !>
!> !
!> !
!> !
!>
!>
!
!
!

Nov 17 '05 #6
If you were running a hosting service, hosting clients that ran ASP.Net
sites, would you want them to simply allow their apps to run under your
SYSTEM account?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
news:Ox******** *******@tk2msft ngp13.phx.gbl.. .
So i have to change it for the whole server. I cant just change it for one application?

sorry if i am being very stupid here.

thanks

Arran

"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:2p******** ******@cpmsftng xa06.phx.gbl...
Hello Arran,

Craig has provided the answer already. :)

Please look in machine.confign file in C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config folder, in the
<processModel > section user="machine" is what is set right now. You can

change that to SYSTEM as you want, but it is not
recommended sicne asp.net app will running under a more powerful account.
Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no

rights.

--------------------
!From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!References: <uB************ **@tk2msftngp13 .phx.gbl>

<#7************ **@TK2MSFTNGP12 .phx.gbl>
<Tm************ **@cpmsftngxa06 .phx.gbl>

<#s************ **@TK2MSFTNGP09 .phx.gbl>
<PP************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: Identity System
!Date: Wed, 30 Jul 2003 00:35:35 +0100
!Lines: 145
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <er************ **@TK2MSFTNGP11 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworl d.com

213.122.6.143
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl

microsoft.publi c.dotnet.framew ork.aspnet:1631 81
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!One other thing....
!
!how to i get my application to run with the rights of the local system
!account? What would i enter in the username & password (in the

web.config
!file).
!
!again....many thanks
!
!Arran
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
!news:PP******* *******@cpmsftn gxa06.phx.gbl.. .
!> Hello Arran,
!>
!> You are welcome. Thanks very much for participating the community.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!<#7*********** ***@TK2MSFTNGP1 2.phx.gbl>
!> <Tm************ **@cpmsftngxa06 .phx.gbl>
!> !Subject: Re: Identity System
!> !Date: Tue, 29 Jul 2003 08:50:15 +0100
!> !Lines: 88
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <#s************ **@TK2MSFTNGP09 .phx.gbl>
!> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !NNTP-Posting-Host: 212.219.119.220
!> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl
!> !Xref: cpmsftngxa06.ph x.gbl
!microsoft.publ ic.dotnet.frame work.aspnet:162 908
!> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !
!> !Thanks for the info.
!> !
!> !
!> !
!> !"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message !> !news:Tm******* *******@cpmsftn gxa06.phx.gbl.. .
!> !> Hi,
!> !>
!> !> I think what you meant is ASP.NET impersonation.
!> !>
!> !> You could add a line in web.config to run an application as a
!configurable
!> !identity. For example:
!> !>
!> !> <identity impersonate="tr ue" userName="conto so\Jane"

password="pass"/>
!> !>
!> !> Please refer to
!>

!!http://msdn.microsoft.com/library/en...pnetimpersonat i
!o
!> !n.asp?frame=tr ue for details.
!> !>
!> !> Thanks very much.
!> !>
!> !> Best regards,
!> !> Yanhong Huang
!> !> Microsoft Online Partner Support
!> !>
!> !> Get Secure! - www.microsoft.com/security
!> !> This posting is provided "AS IS" with no warranties, and confers no !> !rights.
!> !>
!> !> --------------------
!> !> !From: "Craig Deelsnyder" <cd******@NOSPA Myahoo.com>
!> !> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!> !> !Subject: Re: Identity System
!> !> !Date: Sun, 27 Jul 2003 20:26:12 -0500
!> !> !Lines: 30
!> !> !X-Priority: 3
!> !> !X-MSMail-Priority: Normal
!> !> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!> !> !Message-ID: <#7************ **@TK2MSFTNGP12 .phx.gbl>
!> !> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2. attbi.com 66.41.16.200 !> !> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!> !> !Xref: cpmsftngxa06.ph x.gbl
!> !microsoft.publ ic.dotnet.frame work.aspnet:162 483
!> !> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !
!> !> !The default user for all apps is set in your machine.config file in !your
!> !> !local .NET installation folder (in a folder called config). If you !look
!> !in
!> !> !that file, in the <processModel > section user="machine" is pry

what is
!> !set
!> !> !right now. You can change that to SYSTEM as you want, but it is
!highly
!> !> !recommended you don't do that (for security reasons). But it's

your
!> !call.
!> !> !
!> !> !In addition, I'm not sure, you may be able to define this in your
!local
!> !> !web.config also, and thus override the machine.config setting.
!Haven't
!> !> !investigated that myself, so dunno if you can do on an app by app
!> !basis...
!> !> !
!> !> !Another alternative is to use impersonation, and set the user you

want
!> !all
!> !> !visitors to run under....
!> !> !
!> !> !--
!> !> !Craig Deelsnyder
!> !> !Microsoft MVP - ASP/ASP.NET
!> !> !
!> !> !
!> !> !"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
!> !> !news:uB******* *******@tk2msft ngp13.phx.gbl.. .
!> !> !> Hi,
!> !> !>
!> !> !> How can i get my ASP Page or Web Service to run as the

LocalSystem
!> !rather
!> !> !> than a user?
!> !> !>
!> !> !> cheers
!> !> !>
!> !> !>
!> !> !
!> !> !
!> !> !
!> !>
!> !>
!> !
!> !
!> !
!>
!>
!
!
!


Nov 17 '05 #7
Yeah fair point.

only reason i was wanting to run as system was because i am doing some
testing with CDO on a exchange server.

thanks for all the info everyone anyway.

arran

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:O0******** ******@tk2msftn gp13.phx.gbl...
If you were running a hosting service, hosting clients that ran ASP.Net
sites, would you want them to simply allow their apps to run under your
SYSTEM account?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
news:Ox******** *******@tk2msft ngp13.phx.gbl.. .
So i have to change it for the whole server. I cant just change it for one
application?

sorry if i am being very stupid here.

thanks

Arran

"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message
news:2p******** ******@cpmsftng xa06.phx.gbl...
Hello Arran,

Craig has provided the answer already. :)

Please look in machine.confign file in

C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config folder, in the
<processModel > section user="machine" is what is set right now. You can
change that to SYSTEM as you want, but it is not
recommended sicne asp.net app will running under a more powerful account.
Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no

rights.

--------------------
!From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!References: <uB************ **@tk2msftngp13 .phx.gbl>

<#7************ **@TK2MSFTNGP12 .phx.gbl>
<Tm************ **@cpmsftngxa06 .phx.gbl>

<#s************ **@TK2MSFTNGP09 .phx.gbl>
<PP************ **@cpmsftngxa06 .phx.gbl>
!Subject: Re: Identity System
!Date: Wed, 30 Jul 2003 00:35:35 +0100
!Lines: 145
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <er************ **@TK2MSFTNGP11 .phx.gbl>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworl d.com

213.122.6.143
!Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
!Xref: cpmsftngxa06.ph x.gbl

microsoft.publi c.dotnet.framew ork.aspnet:1631 81
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!
!One other thing....
!
!how to i get my application to run with the rights of the local
system !account? What would i enter in the username & password (in the

web.config
!file).
!
!again....many thanks
!
!Arran
!
!"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message !news:PP******* *******@cpmsftn gxa06.phx.gbl.. .
!> Hello Arran,
!>
!> You are welcome. Thanks very much for participating the community.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Arran Pearce" <ar**********@b acoll.ac.uk>
!> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!<#7*********** ***@TK2MSFTNGP1 2.phx.gbl>
!> <Tm************ **@cpmsftngxa06 .phx.gbl>
!> !Subject: Re: Identity System
!> !Date: Tue, 29 Jul 2003 08:50:15 +0100
!> !Lines: 88
!> !X-Priority: 3
!> !X-MSMail-Priority: Normal
!> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
!> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
!> !Message-ID: <#s************ **@TK2MSFTNGP09 .phx.gbl>
!> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !NNTP-Posting-Host: 212.219.119.220
!> !Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl !> !Xref: cpmsftngxa06.ph x.gbl
!microsoft.publ ic.dotnet.frame work.aspnet:162 908
!> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !
!> !Thanks for the info.
!> !
!> !
!> !
!> !"Yan-Hong Huang[MSFT]" <yh*****@online .microsoft.com> wrote in message !> !news:Tm******* *******@cpmsftn gxa06.phx.gbl.. .
!> !> Hi,
!> !>
!> !> I think what you meant is ASP.NET impersonation.
!> !>
!> !> You could add a line in web.config to run an application as a
!configurable
!> !identity. For example:
!> !>
!> !> <identity impersonate="tr ue" userName="conto so\Jane"

password="pass"/>
!> !>
!> !> Please refer to
!>

!!http://msdn.microsoft.com/library/en...pnetimpersonat i
!o
!> !n.asp?frame=tr ue for details.
!> !>
!> !> Thanks very much.
!> !>
!> !> Best regards,
!> !> Yanhong Huang
!> !> Microsoft Online Partner Support
!> !>
!> !> Get Secure! - www.microsoft.com/security
!> !> This posting is provided "AS IS" with no warranties, and confers no !> !rights.
!> !>
!> !> --------------------
!> !> !From: "Craig Deelsnyder" <cd******@NOSPA Myahoo.com>
!> !> !References: <uB************ **@tk2msftngp13 .phx.gbl>
!> !> !Subject: Re: Identity System
!> !> !Date: Sun, 27 Jul 2003 20:26:12 -0500
!> !> !Lines: 30
!> !> !X-Priority: 3
!> !> !X-MSMail-Priority: Normal
!> !> !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!> !> !X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!> !> !Message-ID: <#7************ **@TK2MSFTNGP12 .phx.gbl>
!> !> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2. attbi.com 66.41.16.200 !> !> !Path:

cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
!> !> !Xref: cpmsftngxa06.ph x.gbl
!> !microsoft.publ ic.dotnet.frame work.aspnet:162 483
!> !> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
!> !> !
!> !> !The default user for all apps is set in your machine.config file in
!your
!> !> !local .NET installation folder (in a folder called config). If you !look
!> !in
!> !> !that file, in the <processModel > section user="machine" is pry what
is
!> !set
!> !> !right now. You can change that to SYSTEM as you want, but it

is !highly
!> !> !recommended you don't do that (for security reasons). But it's

your
!> !call.
!> !> !
!> !> !In addition, I'm not sure, you may be able to define this in your !local
!> !> !web.config also, and thus override the machine.config setting.
!Haven't
!> !> !investigated that myself, so dunno if you can do on an app by app !> !basis...
!> !> !
!> !> !Another alternative is to use impersonation, and set the user

you want
!> !all
!> !> !visitors to run under....
!> !> !
!> !> !--
!> !> !Craig Deelsnyder
!> !> !Microsoft MVP - ASP/ASP.NET
!> !> !
!> !> !
!> !> !"Arran Pearce" <ar**********@b acoll.ac.uk> wrote in message
!> !> !news:uB******* *******@tk2msft ngp13.phx.gbl.. .
!> !> !> Hi,
!> !> !>
!> !> !> How can i get my ASP Page or Web Service to run as the

LocalSystem
!> !rather
!> !> !> than a user?
!> !> !>
!> !> !> cheers
!> !> !>
!> !> !>
!> !> !
!> !> !
!> !> !
!> !>
!> !>
!> !
!> !
!> !
!>
!>
!
!
!



Nov 17 '05 #8

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

Similar topics

112
10263
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please, share your experience in using IDENTITY as PK .
8
9444
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
11
45247
by: TheBurgerMan | last post by:
Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange. I started getting the message below last week. I googled the error and not much was returned, but I did find this; http://forums.asp.net/918725/ShowPost.aspx I tried both items in the forum and it works for a few hits then it happens again! Anyone have the same...
3
22000
by: Michael Schwarz | last post by:
Hi, from time to time I get following error message with my ASP.NET 2.0 web application in the event log: An error occurred executing the configuration section handler for system.web/identity. My web.config looks like this: <authentication mode="Forms">
3
2836
by: Susanne Klemm | last post by:
Hello! I use a procedure to insert a new row into a table with an identity column. The procedure has an output parameter which gives me the inserted identity value. This worked well for a long time. Now the identity value is over 700.000 and I get errors whiles retrieving the inserted identitiy value. If I delete rows and reset the identity...
5
32002
by: Veeru71 | last post by:
Given a table with an identity column (GENERATED BY DEFAULT AS IDENTITY), is there any way to get the last generated value by DB2 for the identity column? I can't use identity_val_local() as the INSERTS are happening in a different session. Eg, We have the following table....
13
5770
by: PinkBishop | last post by:
I am using VS 2005 with a formview control trying to insert a record to my access db. The data is submitted to the main table no problem, but I need to carry the catID to the bridge table CatalogImage where imgID also needs to be placed. Below is my code behind to carry the catID using the Select @@Identity and insert imgID to the bridge...
3
2964
by: Przemo Karlikowski | last post by:
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/library/dwc1xthy(vs.80).aspx does not work. Thank...
1
3085
by: Pipo Dyer | last post by:
Hello Everybody, I am Using @@IDENTITY from MS Access (YES-It is possible) using SqlDataSource -NO STORE PROC- in ASP.NET {VB CODE} to retrieve the ID of a inserted record. Please keep in mind I am using a form page an code behing, and I have currently my ConnectionString within my form. Therefore...
0
7666
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...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7644
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
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...
0
6260
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...
1
5484
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...
0
5213
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.