Ask a Question related to ASP.NET General, Design and Development.
-
Arran Pearce #1
Identity System
Hi,
How can i get my ASP Page or Web Service to run as the LocalSystem rather
than a user?
cheers
Arran Pearce Guest
-
apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail
Perhaps compare the group and security restrictions on the account you are trying to use. Maybe it is not allowed to run as a service (or something... -
ASP.NET Identity
Any help? Thanks! rovver2001@hotmail.com (CN) wrote in message news:<d3fdd940.0401040934.cef803c@posting.google.com>... -
User.Identity.Name
Hi, I am using Forms authentication -in which - I am trying to use User.Identity.Name, i am getting the user name in this field even after i... -
@@IDENTITY is 0 ?
I've hit a problem with INSERT and @@IDENTITY for Access that is driving me up the wall. I'm using the OLEDB Jet4.0 in my connection string, so... -
@@IDENTITY in Informix
Hello, Does anyone know how to find out the primary key value of last inserted record? In SQL Server this would be done as follows: INSERT... -
Craig Deelsnyder #2
Re: Identity System
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" <arran.pearce@bacoll.ac.uk> wrote in message
news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...> Hi,
>
> How can i get my ASP Page or Web Service to run as the LocalSystem rather
> than a user?
>
> cheers
>
>
Craig Deelsnyder Guest
-
Yan-Hong Huang[MSFT] #3
Re: Identity System
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="true" userName="contoso\Jane" password="pass"/>
Please refer to [url]http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetimpersonation.asp?frame=true[/url] for details.
Thanks very much.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! - [url]www.microsoft.com/security[/url]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com>
!References: <uBuoEnIVDHA.1680@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: <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: c-66-41-16-200.mn.client2.attbi.com 66.41.16.200
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:162483
!X-Tomcat-NG: microsoft.public.dotnet.framework.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" <arran.pearce@bacoll.ac.uk> wrote in message
!news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...
!> Hi,
!>
!> How can i get my ASP Page or Web Service to run as the LocalSystem rather
!> than a user?
!>
!> cheers
!>
!>
!
!
!
Yan-Hong Huang[MSFT] Guest
-
Arran Pearce #4
Re: Identity System
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]" <yhhuang@online.microsoft.com> wrote in message
news:PPPMFQbVDHA.2128@cpmsftngxa06.phx.gbl...rights.> Hello Arran,
>
> You are welcome. Thanks very much for participating the community.
>
> Best regards,
> Yanhong Huang
> Microsoft Online Partner Support
>
> Get Secure! - [url]www.microsoft.com/security[/url]
> This posting is provided "AS IS" with no warranties, and confers no<#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>>
> --------------------
> !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>microsoft.public.dotnet.framework.aspnet:162908> <TmsAcOXVDHA.2080@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: <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>
> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> !NNTP-Posting-Host: 212.219.119.220
> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
> !Xref: cpmsftngxa06.phx.gblconfigurable> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> !
> !Thanks for the info.
> !
> !
> !
> !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
> !news:TmsAcOXVDHA.2080@cpmsftngxa06.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![url]http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetimpersonati[/url]> !identity. For example:
> !>
> !> <identity impersonate="true" userName="contoso\Jane" password="pass"/>
> !>
> !> Please refer to
>
oyour> !n.asp?frame=true for details.
> !>
> !> Thanks very much.
> !>
> !> Best regards,
> !> Yanhong Huang
> !> Microsoft Online Partner Support
> !>
> !> Get Secure! - [url]www.microsoft.com/security[/url]
> !> This posting is provided "AS IS" with no warranties, and confers no
> !rights.
> !>
> !> --------------------
> !> !From: "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com>
> !> !References: <uBuoEnIVDHA.1680@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: <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2.attbi.com 66.41.16.200
> !> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
> !> !Xref: cpmsftngxa06.phx.gbl
> !microsoft.public.dotnet.framework.aspnet:162483
> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> !> !
> !> !The default user for all apps is set in your machine.config file inlook> !> !local .NET installation folder (in a folder called config). If youhighly> !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 islocal> !> !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 yourHaven't> !> !web.config also, and thus override the machine.config setting.> !> !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" <arran.pearce@bacoll.ac.uk> wrote in message
> !> !news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...
> !> !> Hi,
> !> !>
> !> !> How can i get my ASP Page or Web Service to run as the LocalSystem
> !rather
> !> !> than a user?
> !> !>
> !> !> cheers
> !> !>
> !> !>
> !> !
> !> !
> !> !
> !>
> !>
> !
> !
> !
>
>
Arran Pearce Guest
-
Yan-Hong Huang[MSFT] #5
Re: Identity System
Hello Arran,
Craig has provided the answer already. :)
Please look in machine.confign file in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g 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! - [url]www.microsoft.com/security[/url]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
!References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl> <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
<TmsAcOXVDHA.2080@cpmsftngxa06.phx.gbl> <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>
<PPPMFQbVDHA.2128@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: <erSzKniVDHA.1692@TK2MSFTNGP11.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworld.com 213.122.6.143
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163181
!X-Tomcat-NG: microsoft.public.dotnet.framework.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]" <yhhuang@online.microsoft.com> wrote in message
!news:PPPMFQbVDHA.2128@cpmsftngxa06.phx.gbl...
!> Hello Arran,
!>
!> You are welcome. Thanks very much for participating the community.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - [url]www.microsoft.com/security[/url]
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
!> !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>
!<#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
!> <TmsAcOXVDHA.2080@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: <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>
!> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !NNTP-Posting-Host: 212.219.119.220
!> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
!> !Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework.aspnet:162908
!> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!> !
!> !Thanks for the info.
!> !
!> !
!> !
!> !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
!> !news:TmsAcOXVDHA.2080@cpmsftngxa06.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="true" userName="contoso\Jane" password="pass"/>
!> !>
!> !> Please refer to
!>
!![url]http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetimpersonati[/url]
!o
!> !n.asp?frame=true for details.
!> !>
!> !> Thanks very much.
!> !>
!> !> Best regards,
!> !> Yanhong Huang
!> !> Microsoft Online Partner Support
!> !>
!> !> Get Secure! - [url]www.microsoft.com/security[/url]
!> !> This posting is provided "AS IS" with no warranties, and confers no
!> !rights.
!> !>
!> !> --------------------
!> !> !From: "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com>
!> !> !References: <uBuoEnIVDHA.1680@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: <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
!> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2.attbi.com 66.41.16.200
!> !> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
!> !> !Xref: cpmsftngxa06.phx.gbl
!> !microsoft.public.dotnet.framework.aspnet:162483
!> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.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" <arran.pearce@bacoll.ac.uk> wrote in message
!> !> !news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...
!> !> !> Hi,
!> !> !>
!> !> !> How can i get my ASP Page or Web Service to run as the LocalSystem
!> !rather
!> !> !> than a user?
!> !> !>
!> !> !> cheers
!> !> !>
!> !> !>
!> !> !
!> !> !
!> !> !
!> !>
!> !>
!> !
!> !
!> !
!>
!>
!
!
!
Yan-Hong Huang[MSFT] Guest
-
Arran Pearce #6
Re: Identity System
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]" <yhhuang@online.microsoft.com> wrote in message
news:2pJdIhmVDHA.2080@cpmsftngxa06.phx.gbl...C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g folder, in the> Hello Arran,
>
> Craig has provided the answer already. :)
>
> Please look in machine.confign file inchange that to SYSTEM as you want, but it is not> <processModel> section user="machine" is what is set right now. You canrights.> recommended sicne asp.net app will running under a more powerful account.
>
> Thanks.
>
> Best regards,
> Yanhong Huang
> Microsoft Online Partner Support
>
> Get Secure! - [url]www.microsoft.com/security[/url]
> This posting is provided "AS IS" with no warranties, and confers no<#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>>
> --------------------
> !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl><#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>> <TmsAcOXVDHA.2080@cpmsftngxa06.phx.gbl>213.122.6.143> <PPPMFQbVDHA.2128@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: <erSzKniVDHA.1692@TK2MSFTNGP11.phx.gbl>
> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> !NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworld.commicrosoft.public.dotnet.framework.aspnet:163181> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
> !Xref: cpmsftngxa06.phx.gblweb.config> !X-Tomcat-NG: microsoft.public.dotnet.framework.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 thepassword="pass"/>> !file).
> !
> !again....many thanks
> !
> !Arran
> !
> !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
> !news:PPPMFQbVDHA.2128@cpmsftngxa06.phx.gbl...
> !> Hello Arran,
> !>
> !> You are welcome. Thanks very much for participating the community.
> !>
> !> Best regards,
> !> Yanhong Huang
> !> Microsoft Online Partner Support
> !>
> !> Get Secure! - [url]www.microsoft.com/security[/url]
> !> This posting is provided "AS IS" with no warranties, and confers no
> !rights.
> !>
> !> --------------------
> !> !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> !> !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>
> !<#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> !> <TmsAcOXVDHA.2080@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: <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>
> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> !> !NNTP-Posting-Host: 212.219.119.220
> !> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
> !> !Xref: cpmsftngxa06.phx.gbl
> !microsoft.public.dotnet.framework.aspnet:162908
> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> !> !
> !> !Thanks for the info.
> !> !
> !> !
> !> !
> !> !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
> !> !news:TmsAcOXVDHA.2080@cpmsftngxa06.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="true" userName="contoso\Jane"!![url]http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetimpersonat[/url]> !> !>
> !> !> Please refer to
> !>
>
icpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl> !o
> !> !n.asp?frame=true for details.
> !> !>
> !> !> Thanks very much.
> !> !>
> !> !> Best regards,
> !> !> Yanhong Huang
> !> !> Microsoft Online Partner Support
> !> !>
> !> !> Get Secure! - [url]www.microsoft.com/security[/url]
> !> !> This posting is provided "AS IS" with no warranties, and confers no
> !> !rights.
> !> !>
> !> !> --------------------
> !> !> !From: "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com>
> !> !> !References: <uBuoEnIVDHA.1680@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: <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> !> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> !> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2.attbi.com 66.41.16.200
> !> !> !Path:is> !> !> !Xref: cpmsftngxa06.phx.gbl
> !> !microsoft.public.dotnet.framework.aspnet:162483
> !> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.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 whatyour> !> !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'swant> !> !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 youLocalSystem> !> !all
> !> !> !visitors to run under....
> !> !> !
> !> !> !--
> !> !> !Craig Deelsnyder
> !> !> !Microsoft MVP - ASP/ASP.NET
> !> !> !
> !> !> !
> !> !> !"Arran Pearce" <arran.pearce@bacoll.ac.uk> wrote in message
> !> !> !news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...
> !> !> !> Hi,
> !> !> !>
> !> !> !> How can i get my ASP Page or Web Service to run as the> !> !rather
> !> !> !> than a user?
> !> !> !>
> !> !> !> cheers
> !> !> !>
> !> !> !>
> !> !> !
> !> !> !
> !> !> !
> !> !>
> !> !>
> !> !
> !> !
> !> !
> !>
> !>
> !
> !
> !
>
>
Arran Pearce Guest
-
Kevin Spencer #7
Re: Identity System
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
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Arran Pearce" <arran.pearce@bacoll.ac.uk> wrote in message
news:Ox%235EEnVDHA.652@tk2msftngp13.phx.gbl...one> So i have to change it for the whole server. I cant just change it foraccount.> application?
>
> sorry if i am being very stupid here.
>
> thanks
>
> Arran
>
> "Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
> news:2pJdIhmVDHA.2080@cpmsftngxa06.phx.gbl...> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g folder, in the> > Hello Arran,
> >
> > Craig has provided the answer already. :)
> >
> > Please look in machine.confign file in> change that to SYSTEM as you want, but it is not> > <processModel> section user="machine" is what is set right now. You can> > recommended sicne asp.net app will running under a more powerfulmessage> rights.> >
> > Thanks.
> >
> > Best regards,
> > Yanhong Huang
> > Microsoft Online Partner Support
> >
> > Get Secure! - [url]www.microsoft.com/security[/url]
> > This posting is provided "AS IS" with no warranties, and confers no> <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>> >
> > --------------------
> > !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> > !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>> <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>> > <TmsAcOXVDHA.2080@cpmsftngxa06.phx.gbl>> 213.122.6.143> > <PPPMFQbVDHA.2128@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: <erSzKniVDHA.1692@TK2MSFTNGP11.phx.gbl>
> > !Newsgroups: microsoft.public.dotnet.framework.aspnet
> > !NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworld.com> microsoft.public.dotnet.framework.aspnet:163181> > !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
> > !Xref: cpmsftngxa06.phx.gbl> web.config> > !X-Tomcat-NG: microsoft.public.dotnet.framework.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> > !file).
> > !
> > !again....many thanks
> > !
> > !Arran
> > !
> > !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
> > !news:PPPMFQbVDHA.2128@cpmsftngxa06.phx.gbl...
> > !> Hello Arran,
> > !>
> > !> You are welcome. Thanks very much for participating the community.
> > !>
> > !> Best regards,
> > !> Yanhong Huang
> > !> Microsoft Online Partner Support
> > !>
> > !> Get Secure! - [url]www.microsoft.com/security[/url]
> > !> This posting is provided "AS IS" with no warranties, and confers no
> > !rights.
> > !>
> > !> --------------------
> > !> !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> > !> !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>
> > !<#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> > !> <TmsAcOXVDHA.2080@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: <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>
> > !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> > !> !NNTP-Posting-Host: 212.219.119.220
> > !> !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
> > !> !Xref: cpmsftngxa06.phx.gbl
> > !microsoft.public.dotnet.framework.aspnet:162908
> > !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> > !> !
> > !> !Thanks for the info.
> > !> !
> > !> !
> > !> !
> > !> !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in!![url]http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetimpersonat[/url]> password="pass"/>> > !> !news:TmsAcOXVDHA.2080@cpmsftngxa06.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="true" userName="contoso\Jane">> > !> !>
> > !> !> Please refer to
> > !>
> >no> i> > !o
> > !> !n.asp?frame=true for details.
> > !> !>
> > !> !> Thanks very much.
> > !> !>
> > !> !> Best regards,
> > !> !> Yanhong Huang
> > !> !> Microsoft Online Partner Support
> > !> !>
> > !> !> Get Secure! - [url]www.microsoft.com/security[/url]
> > !> !> This posting is provided "AS IS" with no warranties, and confers66.41.16.200> > !> !rights.
> > !> !>
> > !> !> --------------------
> > !> !> !From: "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com>
> > !> !> !References: <uBuoEnIVDHA.1680@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: <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> > !> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> > !> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2.attbi.comin> cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl> > !> !> !Path:> > !> !> !Xref: cpmsftngxa06.phx.gbl
> > !> !microsoft.public.dotnet.framework.aspnet:162483
> > !> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> > !> !> !
> > !> !> !The default user for all apps is set in your machine.config fileyou> > !your
> > !> !> !local .NET installation folder (in a folder called config). Ifwhat> > !look
> > !> !in
> > !> !> !that file, in the <processModel> section user="machine" is pry> is> your> > !> !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> want> > !> !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> LocalSystem> > !> !all
> > !> !> !visitors to run under....
> > !> !> !
> > !> !> !--
> > !> !> !Craig Deelsnyder
> > !> !> !Microsoft MVP - ASP/ASP.NET
> > !> !> !
> > !> !> !
> > !> !> !"Arran Pearce" <arran.pearce@bacoll.ac.uk> wrote in message
> > !> !> !news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...
> > !> !> !> Hi,
> > !> !> !>
> > !> !> !> How can i get my ASP Page or Web Service to run as the>> > !> !rather
> > !> !> !> than a user?
> > !> !> !>
> > !> !> !> cheers
> > !> !> !>
> > !> !> !>
> > !> !> !
> > !> !> !
> > !> !> !
> > !> !>
> > !> !>
> > !> !
> > !> !
> > !> !
> > !>
> > !>
> > !
> > !
> > !
> >
> >
>
Kevin Spencer Guest
-
Arran Pearce #8
Re: Identity System
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" <kevin@takempis.com> wrote in message
news:O0SBhTpVDHA.3924@tk2msftngp13.phx.gbl...can> 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
> [url]http://www.takempis.com[/url]
> Complex things are made up of
> lots of simple things.
>
> "Arran Pearce" <arran.pearce@bacoll.ac.uk> wrote in message
> news:Ox%235EEnVDHA.652@tk2msftngp13.phx.gbl...> one> > So i have to change it for the whole server. I cant just change it for> > application?
> >
> > sorry if i am being very stupid here.
> >
> > thanks
> >
> > Arran
> >
> > "Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in message
> > news:2pJdIhmVDHA.2080@cpmsftngxa06.phx.gbl...> > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g folder, in the> > > Hello Arran,
> > >
> > > Craig has provided the answer already. :)
> > >
> > > Please look in machine.confign file in> > > <processModel> section user="machine" is what is set right now. Yousystem> account.> > change that to SYSTEM as you want, but it is not> > > recommended sicne asp.net app will running under a more powerful> > rights.> > >
> > > Thanks.
> > >
> > > Best regards,
> > > Yanhong Huang
> > > Microsoft Online Partner Support
> > >
> > > Get Secure! - [url]www.microsoft.com/security[/url]
> > > This posting is provided "AS IS" with no warranties, and confers no> > <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>> > >
> > > --------------------
> > > !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> > > !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>> > <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>> > > <TmsAcOXVDHA.2080@cpmsftngxa06.phx.gbl>> > 213.122.6.143> > > <PPPMFQbVDHA.2128@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: <erSzKniVDHA.1692@TK2MSFTNGP11.phx.gbl>
> > > !Newsgroups: microsoft.public.dotnet.framework.aspnet
> > > !NNTP-Posting-Host: host213-122-6-143.in-addr.btopenworld.com> > microsoft.public.dotnet.framework.aspnet:163181> > > !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
> > > !Xref: cpmsftngxa06.phx.gbl> > > !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> > > !
> > > !One other thing....
> > > !
> > > !how to i get my application to run with the rights of the localmessage> > web.config> > > !account? What would i enter in the username & password (in the> > > !file).
> > > !
> > > !again....many thanks
> > > !
> > > !Arran
> > > !
> > > !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote incpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl> > > !news:PPPMFQbVDHA.2128@cpmsftngxa06.phx.gbl...
> > > !> Hello Arran,
> > > !>
> > > !> You are welcome. Thanks very much for participating the community.
> > > !>
> > > !> Best regards,
> > > !> Yanhong Huang
> > > !> Microsoft Online Partner Support
> > > !>
> > > !> Get Secure! - [url]www.microsoft.com/security[/url]
> > > !> This posting is provided "AS IS" with no warranties, and confers no
> > > !rights.
> > > !>
> > > !> --------------------
> > > !> !From: "Arran Pearce" <arran.pearce@bacoll.ac.uk>
> > > !> !References: <uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl>
> > > !<#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> > > !> <TmsAcOXVDHA.2080@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: <#s5Z8WaVDHA.2164@TK2MSFTNGP09.phx.gbl>
> > > !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> > > !> !NNTP-Posting-Host: 212.219.119.220
> > > !> !Path:!![url]http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetimpersonat[/url]> message> > > !> !Xref: cpmsftngxa06.phx.gbl
> > > !microsoft.public.dotnet.framework.aspnet:162908
> > > !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> > > !> !
> > > !> !Thanks for the info.
> > > !> !
> > > !> !
> > > !> !
> > > !> !"Yan-Hong Huang[MSFT]" <yhhuang@online.microsoft.com> wrote in>> > password="pass"/>> > > !> !news:TmsAcOXVDHA.2080@cpmsftngxa06.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="true" userName="contoso\Jane"> >> > > !> !>
> > > !> !> Please refer to
> > > !>
> > >file> no> > i> > > !o
> > > !> !n.asp?frame=true for details.
> > > !> !>
> > > !> !> Thanks very much.
> > > !> !>
> > > !> !> Best regards,
> > > !> !> Yanhong Huang
> > > !> !> Microsoft Online Partner Support
> > > !> !>
> > > !> !> Get Secure! - [url]www.microsoft.com/security[/url]
> > > !> !> This posting is provided "AS IS" with no warranties, and confers> 66.41.16.200> > > !> !rights.
> > > !> !>
> > > !> !> --------------------
> > > !> !> !From: "Craig Deelsnyder" <cdeelsny@NOSPAMyahoo.com>
> > > !> !> !References: <uBuoEnIVDHA.1680@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: <#7Cn4cKVDHA.2508@TK2MSFTNGP12.phx.gbl>
> > > !> !> !Newsgroups: microsoft.public.dotnet.framework.aspnet
> > > !> !> !NNTP-Posting-Host: c-66-41-16-200.mn.client2.attbi.com> > cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl> > > !> !> !Path:> > > !> !> !Xref: cpmsftngxa06.phx.gbl
> > > !> !microsoft.public.dotnet.framework.aspnet:162483
> > > !> !> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> > > !> !> !
> > > !> !> !The default user for all apps is set in your machine.configis> in> you> > > !your
> > > !> !> !local .NET installation folder (in a folder called config). If> what> > > !look
> > > !> !in
> > > !> !> !that file, in the <processModel> section user="machine" is pry> > is> > > !> !set
> > > !> !> !right now. You can change that to SYSTEM as you want, but ityour> > your> > > !highly
> > > !> !> !recommended you don't do that (for security reasons). But it's> > > !> !call.
> > > !> !> !
> > > !> !> !In addition, I'm not sure, you may be able to define this inapp> > > !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 byyou> > > !> !basis...
> > > !> !> !
> > > !> !> !Another alternative is to use impersonation, and set the user>> > want> > LocalSystem> > > !> !all
> > > !> !> !visitors to run under....
> > > !> !> !
> > > !> !> !--
> > > !> !> !Craig Deelsnyder
> > > !> !> !Microsoft MVP - ASP/ASP.NET
> > > !> !> !
> > > !> !> !
> > > !> !> !"Arran Pearce" <arran.pearce@bacoll.ac.uk> wrote in message
> > > !> !> !news:uBuoEnIVDHA.1680@tk2msftngp13.phx.gbl...
> > > !> !> !> Hi,
> > > !> !> !>
> > > !> !> !> How can i get my ASP Page or Web Service to run as the> >> > > !> !rather
> > > !> !> !> than a user?
> > > !> !> !>
> > > !> !> !> cheers
> > > !> !> !>
> > > !> !> !>
> > > !> !> !
> > > !> !> !
> > > !> !> !
> > > !> !>
> > > !> !>
> > > !> !
> > > !> !
> > > !> !
> > > !>
> > > !>
> > > !
> > > !
> > > !
> > >
> > >
> >
>
Arran Pearce Guest



Reply With Quote

