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

Home Posts Topics Members FAQ

ASPNET user writing to a subfolder

Should ASPNET user belong to the local Users group?
I may have made some changes that affected my workstation setup and I am
experiencing some unexpected behaviors.

For example, I have my IIS set up with anonymous login and have ASP.NET
running.
My ASP.NET application then creates a log file and writes to it during its
course. The only thing is that it should not be able to.

My questions are below. Please correct any incorrect assumptions I make as
well:

1. When IIS is in anonymous mode, ASP.NET app runs as ASPNET(or NETWORK
SERVICE) user.
Would <identity impersonate="tr ue"> make the app run as IUSER_MACHINENA ME
user?

2. When IIS in in windows authentication mode, ASP.NET app still runs as
APNET(or NETWORK SERVICE) user unless you specify <identity
impersonate="tr ue"> in which case, the app will run as the user
authenticated by IIS.

Also, this may seem like a stupid question but does <identity
impersonate="tr ue"> have effect on only the resources that are requested by
the application, - i.e. file system access, directory service, etc. - or
does it change the user who's making the request in the first?

Within the app, if I queried for the current user executing the app, would I
see IUSER_MACHINENA ME in #1 and the authenticated user in #2? If I
specified a user in #2 (by supplying user/pass), would I see the specified
user from the app or does it only affect the access to the resources?

I hope the questions are not too confusing and thanks for your help.
Jiho

Nov 18 '05 #1
3 1943
Another set of questions...

ASP.NET runs as ASPNET on pre-windows 2003 and NETWORK SERVICE user on
windows 2003 by default.

I found out that ASP.NET user on my workstation(XP) belongs to the local
Users group. Should this be? I looked at another installation which is
pretty much untouched after the ASP.NET(or framework SDK) installation and I
found the same to be true. This seems like a bad idea to me.

Then I can't find NETWORK SERVICE user anywhere in the Active Directory
Users and Computers tool on windows 2003 box. But I know that it's there
since I have a working ASP.NET app. I am not very familiar with AD and I
guess I am looking for a specific location where I can see the user listed
similar to how ASPNET user is listed in windows 2000/xp. On a similar note,
I don't see NETWORK SERVICE user listed under the local built-in Users
group. Is it there but invisible somehow or is it not part of the group at
all? If it's the latter, then why would ASPNET user need to be in the Users
group?

Thanks for any info.
Jiho

"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:uS******** ******@TK2MSFTN GP12.phx.gbl...
Should ASPNET user belong to the local Users group?
I may have made some changes that affected my workstation setup and I am
experiencing some unexpected behaviors.

For example, I have my IIS set up with anonymous login and have ASP.NET
running.
My ASP.NET application then creates a log file and writes to it during its
course. The only thing is that it should not be able to.

My questions are below. Please correct any incorrect assumptions I make as well:

1. When IIS is in anonymous mode, ASP.NET app runs as ASPNET(or NETWORK
SERVICE) user.
Would <identity impersonate="tr ue"> make the app run as IUSER_MACHINENA ME
user?

2. When IIS in in windows authentication mode, ASP.NET app still runs as
APNET(or NETWORK SERVICE) user unless you specify <identity
impersonate="tr ue"> in which case, the app will run as the user
authenticated by IIS.

Also, this may seem like a stupid question but does <identity
impersonate="tr ue"> have effect on only the resources that are requested by the application, - i.e. file system access, directory service, etc. - or
does it change the user who's making the request in the first?

Within the app, if I queried for the current user executing the app, would I see IUSER_MACHINENA ME in #1 and the authenticated user in #2? If I
specified a user in #2 (by supplying user/pass), would I see the specified
user from the app or does it only affect the access to the resources?

I hope the questions are not too confusing and thanks for your help.
Jiho

Nov 18 '05 #2
The NETWORK SERVICE identity has also been confusing me.
I have not figured it all out yet but suggest at least the two Pattern
& Practice articles as a good start...

http://msdn.microsoft.com/library/de...asp?frame=true

http://msdn.microsoft.com/library/de...haspdotnet.asp

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/


"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:Oy******** ******@TK2MSFTN GP10.phx.gbl...
Another set of questions...

ASP.NET runs as ASPNET on pre-windows 2003 and NETWORK SERVICE user on
windows 2003 by default.

I found out that ASP.NET user on my workstation(XP) belongs to the local Users group. Should this be? I looked at another installation which is pretty much untouched after the ASP.NET(or framework SDK) installation and I found the same to be true. This seems like a bad idea to me.

Then I can't find NETWORK SERVICE user anywhere in the Active Directory Users and Computers tool on windows 2003 box. But I know that it's there since I have a working ASP.NET app. I am not very familiar with AD and I guess I am looking for a specific location where I can see the user listed similar to how ASPNET user is listed in windows 2000/xp. On a similar note, I don't see NETWORK SERVICE user listed under the local built-in Users
group. Is it there but invisible somehow or is it not part of the group at all? If it's the latter, then why would ASPNET user need to be in the Users group?

Thanks for any info.
Jiho

"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:uS******** ******@TK2MSFTN GP12.phx.gbl...
Should ASPNET user belong to the local Users group?
I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors.

For example, I have my IIS set up with anonymous login and have ASP.NET running.
My ASP.NET application then creates a log file and writes to it during its course. The only thing is that it should not be able to.

My questions are below. Please correct any incorrect assumptions I make
as
well:

1. When IIS is in anonymous mode, ASP.NET app runs as ASPNET(or
NETWORK SERVICE) user.
Would <identity impersonate="tr ue"> make the app run as IUSER_MACHINENA ME user?

2. When IIS in in windows authentication mode, ASP.NET app still runs as APNET(or NETWORK SERVICE) user unless you specify <identity
impersonate="tr ue"> in which case, the app will run as the user
authenticated by IIS.

Also, this may seem like a stupid question but does <identity
impersonate="tr ue"> have effect on only the resources that are requested by
the application, - i.e. file system access, directory service,
etc. - or does it change the user who's making the request in the first?

Within the app, if I queried for the current user executing the app, would I
see IUSER_MACHINENA ME in #1 and the authenticated user in #2? If I
specified a user in #2 (by supplying user/pass), would I see the

specified user from the app or does it only affect the access to the resources?
I hope the questions are not too confusing and thanks for your help.
Jiho


Nov 18 '05 #3
Thanks Clinton, I'll take a look at them.

"clintonG" <csgallagher@RE ************@me tromilwaukee.co m> wrote in message
news:Ol******** ******@TK2MSFTN GP10.phx.gbl...
The NETWORK SERVICE identity has also been confusing me.
I have not figured it all out yet but suggest at least the two Pattern
& Practice articles as a good start...

http://msdn.microsoft.com/library/de...asp?frame=true
http://msdn.microsoft.com/library/de...haspdotnet.asp
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee. com
URL http://www.metromilwaukee.com/clintongallagher/


"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:Oy******** ******@TK2MSFTN GP10.phx.gbl...
Another set of questions...

ASP.NET runs as ASPNET on pre-windows 2003 and NETWORK SERVICE user on
windows 2003 by default.

I found out that ASP.NET user on my workstation(XP) belongs to the

local
Users group. Should this be? I looked at another installation which

is
pretty much untouched after the ASP.NET(or framework SDK) installation

and I
found the same to be true. This seems like a bad idea to me.

Then I can't find NETWORK SERVICE user anywhere in the Active

Directory
Users and Computers tool on windows 2003 box. But I know that it's

there
since I have a working ASP.NET app. I am not very familiar with AD

and I
guess I am looking for a specific location where I can see the user

listed
similar to how ASPNET user is listed in windows 2000/xp. On a similar

note,
I don't see NETWORK SERVICE user listed under the local built-in Users
group. Is it there but invisible somehow or is it not part of the

group at
all? If it's the latter, then why would ASPNET user need to be in the

Users
group?

Thanks for any info.
Jiho

"Jiho Han" <ji******@infin ityinfo.com> wrote in message
news:uS******** ******@TK2MSFTN GP12.phx.gbl...
Should ASPNET user belong to the local Users group?
I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors.

For example, I have my IIS set up with anonymous login and have ASP.NET running.
My ASP.NET application then creates a log file and writes to it during its course. The only thing is that it should not be able to.

My questions are below. Please correct any incorrect assumptions I make
as
well:

1. When IIS is in anonymous mode, ASP.NET app runs as ASPNET(or

NETWORK SERVICE) user.
Would <identity impersonate="tr ue"> make the app run as IUSER_MACHINENA ME user?

2. When IIS in in windows authentication mode, ASP.NET app still runs as APNET(or NETWORK SERVICE) user unless you specify <identity
impersonate="tr ue"> in which case, the app will run as the user
authenticated by IIS.

Also, this may seem like a stupid question but does <identity
impersonate="tr ue"> have effect on only the resources that are requested
by
the application, - i.e. file system access, directory service,

etc. - or does it change the user who's making the request in the first?

Within the app, if I queried for the current user executing the app, would
I
see IUSER_MACHINENA ME in #1 and the authenticated user in #2? If I
specified a user in #2 (by supplying user/pass), would I see the

specified user from the app or does it only affect the access to the resources?
I hope the questions are not too confusing and thanks for your help.
Jiho



Nov 18 '05 #4

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

Similar topics

3
7642
by: Harry Simpson | last post by:
Windows Server 2003 is supposed to include Framework 1.1 right. I don't have it here but have reports that the web is not running. The users say that the %COMPUTERNAME%\ASPNET user doesn't exist. Questions: 1. is this user replaced by the %COMPUTERNAME%\NETWORK SERVICE user in Windows 2003 Server (IIS6)? 2. if the ASPNET user still...
4
2180
by: SWu | last post by:
Hi all Could someone tell me how to give my app permission to create a file in a subfolder? At the moment, I am getting 'Access to the path "C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pdf" is denied'. Any help anyone can give me urgently would be greatly appreciated. Thanks, Stephen
2
3518
by: Jeremy | last post by:
Everything in my app worked fine - then I moved some user controls to a subfolder named \ControlTemplates that physically exists directly under the site root. Then, at runtime when these lines attempts to load a user control from that subdirectory: string templateFileName = @"/ControlTemplates/Template01.ascx"; Control templateControl =...
1
1453
by: harry | last post by:
Hi all I am using VS.NET 2003 installer to deploy my ASP.NET application. I want to allow ASPNET write access to some files in subfolders of the inetpub/wwwroot/myApp/mySubfolder using VS.NET 2003 deploy project. Is there a script or conditions that I have to set in the deployment project's properties? I have tried deploying it but...
3
1598
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
6
2425
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data Source=(local);Initial Catalog=MCSCRE;Integrated Security=SSPI"); myConnection.Open(); However, the user of this database is ASPNET. I can't create...
5
1614
by: =?Utf-8?B?TWljaGFlbCBNaWxsZXI=?= | last post by:
I created a walkthrough and couldn't connect to my sql server. I looked up the problem and MSDN told me to create an ASPNET "User" in SQL Svr. It worked, but is that right? Do I have to do that for web projects. How does that user relate to the other users? I'm not seeing the logic. I thought maybe a "Role" that I could assign all users...
2
2120
by: Paul Shapiro | last post by:
I saw a recent note here that user file uploads should be directed to a subfolder of App_Data to avoid site recompilation each time a file is uploaded. That worked fine on my development machine, but when I deployed to a test site at my web host, it fails: Access to the path '...\App_Data\PDFFiles\Filename.pdf' is denied. How do I set...
1
1707
by: Bobby Edward | last post by:
I am using the built in ASP.NET membership provider. All files in the 'members' subfolder is only accessible by those in role 'member'. I want a user to be able to create 'sub-user' accounts. The sub-user would be able to do things 'on behalf' of the primary user. My relational db is setup to cascade delete all related data records...
0
7583
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
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
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
7950
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
6255
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...
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
3643
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...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
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.