473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help - directory access for ASPNET user

Hi

I have an ASP.NET application that writes to a log file in a directory outside the webapp directory (e.g. c:\program files\myapp\logs). OS is Windows 2003

If I see the list of users in the "Security" tab for the 'logs' directory, I see that <localmachine>\Users already exists. Now, <localmachine>\ASPNET is a part of this 'Users' group. But this group does not have write access to the 'logs' directory. I think this is the default setting for all directories

If I give Full Control to the '<localmachine>\Users' group to the 'logs' directrory, my application is able to create the log file

But if instead, I explicitly add '<localmachine>\ASPNET' to the list (in addition to the inherited '<localmachine>\Users' group), and give Full Control to this ASPNET user, my application is not able to create the log file

Then I unchecked 'Inherit from parent' for that directory and removed '<localmachine>\Users' from the list. But even though '<localmachine>\ASPNET' has Full Control on that directory, my ASP.NET app cannot create the log file

Am I missing something here

Thank
Har

Nov 18 '05 #1
2 1302
You say Windows 2003. Have you tried giving permissions for NETWORK SERVICE
user? ASP.NET apps should run under it in Wk3 by default
http://www.microsoft.com/resources/d...RG_ARC_21.mspx

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Hari" <ha*******@community.nospam> wrote in message
news:31**********************************@microsof t.com...
Hi,

I have an ASP.NET application that writes to a log file in a directory
outside the webapp directory (e.g. c:\program files\myapp\logs). OS is
Windows 2003.

If I see the list of users in the "Security" tab for the 'logs' directory, I
see that <localmachine>\Users already exists. Now, <localmachine>\ASPNET is
a part of this 'Users' group. But this group does not have write access to
the 'logs' directory. I think this is the default setting for all
directories.

If I give Full Control to the '<localmachine>\Users' group to the 'logs'
directrory, my application is able to create the log file.

But if instead, I explicitly add '<localmachine>\ASPNET' to the list (in
addition to the inherited '<localmachine>\Users' group), and give Full
Control to this ASPNET user, my application is not able to create the log
file.

Then I unchecked 'Inherit from parent' for that directory and removed
'<localmachine>\Users' from the list. But even though
'<localmachine>\ASPNET' has Full Control on that directory, my ASP.NET app
cannot create the log file.

Am I missing something here?

Thanks
Hari
Nov 18 '05 #2
Hi Hari,

The NetWork Service is the default process account on W2K box with IIS6.
This is mentioned in some certain document in MSDN but not detailed
described. You may search the "authentication" or "authorization" key words
in MSDN libraray. In addition ,here is another tech article on IIS6 win2k3
server's ASP.NET model:

#IIS 6.0 and ASP.NET, Part 1
http://www.developer.com/net/asp/article.php/2243151

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

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

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

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

Similar topics

0
1139
by: John Dalberg | last post by:
I am trying to lock down file access of some sites in a shared hosting environment so that different users can only access their own site's directory with their asp.net code. However there's a...
3
7637
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....
3
244
by: Dave Taylor | last post by:
I have an old ASP application that I'm converting to ASPNET. The application allows users to login, enter data, and run simulations on our computers and the results are stored in a file the user...
2
922
by: Hari | last post by:
Hi I have an ASP.NET application that writes to a log file in a directory outside the webapp directory (e.g. c:\program files\myapp\logs). OS is Windows 2003 If I see the list of users in the...
3
1941
by: Jiho Han | last post by:
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...
1
1379
by: Sheryl Landon | last post by:
Hi - when I try to run my app, I'm geting this error immediately: "The directory does not exist or is not accessible because of security settings" The app was running previously, but my machine...
0
1216
by: John Holmes | last post by:
I saw a post in October that related to the problem I'm having and posted something yesterday but never saw it show up, so I'll try again. I read secnet.pdf and gathered from that document that one...
6
8629
by: SirPoonga | last post by:
I have been trying to figure out how to get the user login name of the user using an asp.net page. This is for an intranet. I got as far as doing something like this: Dim wpMain as...
3
2310
by: Doug | last post by:
Using Visual Studio 2005, SQL Server 2000, and ASP.NET/VB.NET for a Web Application. We have a System DSN using Windows NT authentication defined on the development box to connect to the SQL...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7377
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...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1544
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 ...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.