473,382 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

File access permissions

I have just installed Visual Studio .Net Academic 2003 and MSDN Academic
2003. In testing a program that I had written in the 2002 version I find
that when I use fileopen to access a file I get:

Access to the path "c:\inetpub\wwwroot\_private\(filename)" is denied.

The message goes on to say:

The ASP.NET process is not authorized to access the requested resource. For
security reasons the default ASP.NET process identity is
'{machinename}\ASPNET', which has limited privileges. Consider granting
access rights to the resource to the ASP.NET process identity.
I do not understand this since it worked fine before. How do I set
permissions so that anyone using my site can perform open/read//write on
files? As I read the error message I have to give ASPNET users broader
permissions but I do not know how to do that. Can some help?

Thanks very much.
Jul 21 '05 #1
1 3600
I'm not 100% sure what you're trying to do exactly, but my
guess would be that you need to give the account(s) you
want to have access to the file, the amount of access you
want them to have.

For example, you may want everybody to be able to read the
file, but only certain people to write to the file.

You would do this through the Windows File System (NTFS).
Basically, navigate to the file, right-click on the file,
select properties, and select the security tab. From
there you'll have to pick the user(s) and select the level
of permissions you want that user to have (allow and deny
them certain things).

You may also need to modify some of the settings in IIS to
get this to work correctly.

For example, if you have multiple users with various
levels of permission to the file, you may need to use
Integrated Windows Auth and disable anonymous. However,
if you want anybody to be able to read/write, just give
the IUSER (it's the default anonymous IIS account that
runs everything) account those permissions in NTFS and
have IIS setup to run anonymous (with the IUSER account).

Things like this are different for everything, so it's
possible that I could be way off in what you're trying to
do. However, as a developer I personally feel that it's
important for all developer's to have a fairly decent
understanding of how Windows security and IIS security
work hand-in-hand in your applications so as you're
developing an application you know exactly how you need
the security configured.

HTH,
Jeremy
-----Original Message-----
I have just installed Visual Studio .Net Academic 2003 and MSDN Academic2003. In testing a program that I had written in the 2002 version I findthat when I use fileopen to access a file I get:

Access to the path "c:\inetpub\wwwroot\_private\(filename)" is denied.
The message goes on to say:

The ASP.NET process is not authorized to access the requested resource. Forsecurity reasons the default ASP.NET process identity is
'{machinename}\ASPNET', which has limited privileges. Consider grantingaccess rights to the resource to the ASP.NET process identity.

I do not understand this since it worked fine before. How do I setpermissions so that anyone using my site can perform open/read//write onfiles? As I read the error message I have to give ASPNET users broaderpermissions but I do not know how to do that. Can some help?
Thanks very much.
.

Jul 21 '05 #2

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

Similar topics

7
by: barney | last post by:
I'm trying to write to an existing file under windows XP (home). The files are in 'My Music' which I think may be treated in some special way under XP. The relevant python code is as follows: ...
0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
1
by: raydelex | last post by:
I am new to securing a database with logins. My questions is: I want only one database to use a new Workgroup file that I have created, not all the Access databases that I bring up under my...
11
by: sur | last post by:
Hello, My problem is that File.Exists works fine if my file is on my local drive but returns false if its on any other drive. I think that the issue is probably file permissions and so I have...
1
by: =?Utf-8?B?R2FuZXNoIE11dGh1dmVsdQ==?= | last post by:
Hello All, Our application write logs to a file in a folder. Before our application starts writing to that file, I want to check if the current user has write access to that file, for example,...
7
by: sprash | last post by:
Newbie question: I'm trying to determine if a file physically exists regardless of the permissions on it Using File.Exists() returns false if it physically exists but the process does not...
24
by: dancer | last post by:
Using ASP.net 1.1 and Microsoft Access. I received the following error message. Why? I have closed the Access file. I have another very small access file that opens with no trouble with the...
30
by: Adam Baker | last post by:
Hello, I'm writing a site where a handful of people will be able to edit the content using PHP scripts (FCKeditor). The content is stored as individual files in a directory. I'd like to validate...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.