473,390 Members | 1,300 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,390 software developers and data experts.

Inheriting Permissions


I give permissions for ASPNET on a top level subdirectory.

A windows program copies a file into the subdirectory, however, my web
service cannot access the file because it does not have permissions.

Shouldn't the file automatically inherit permissions by being dropped
into that top level subdirectory?

--
Texeme Textcasting Technology
http://texeme.com

Indie Pop Rocks @ SomaFM
http://somafm.com/

Jul 21 '05 #1
6 2252
!!! Klutzo !!! wrote:

I give permissions for ASPNET on a top level subdirectory.

A windows program copies a file into the subdirectory, however, my web
service cannot access the file because it does not have permissions.

Shouldn't the file automatically inherit permissions by being dropped
into that top level subdirectory?


In short, no. File will either preserve it's permissions or change the owner permissions to whoever
dropped it there. Folder's permissions in no way affect file's ones.
Jul 21 '05 #2
!!! Klutzo !!! wrote:

I give permissions for ASPNET on a top level subdirectory.

A windows program copies a file into the subdirectory, however, my web
service cannot access the file because it does not have permissions.

Shouldn't the file automatically inherit permissions by being dropped
into that top level subdirectory?

Ignore my previous post.
Here's the rules:

# When a file or a folder is created, it inherits permissions from the parent folder.
# When a file or a folder is copied to another folder on the same or a different partition, it
inherits the NTFS permissions of the destination folder.
# When a file or a folder is moved to another folder on the same partition, its NTFS permissions are
maintained ASIS.
# When a file or a folder is moved to another folder on a different partition, it inherits the NTFS
permissions of the destination folder.
# When a file or a folder is copied or moved to a FAT partition, all permissions are lost since FAT
partitions do not support permissions.
# When a file or a folder is copied from a FAT partition, it inherits permissions from the
destination folder.

Taken from
http://www.windowsnetworking.com/kba...artitions.html

Hope it helps,
Andrey
Jul 21 '05 #3
MuZZy wrote:
!!! Klutzo !!! wrote:

I give permissions for ASPNET on a top level subdirectory.

A windows program copies a file into the subdirectory, however, my web
service cannot access the file because it does not have permissions.

Shouldn't the file automatically inherit permissions by being dropped
into that top level subdirectory?

Ignore my previous post.
Here's the rules:

# When a file or a folder is created, it inherits permissions from the
parent folder.
# When a file or a folder is copied to another folder on the same or a
different partition, it inherits the NTFS permissions of the destination
folder.
# When a file or a folder is moved to another folder on the same
partition, its NTFS permissions are maintained ASIS.
# When a file or a folder is moved to another folder on a different
partition, it inherits the NTFS permissions of the destination folder.
# When a file or a folder is copied or moved to a FAT partition, all
permissions are lost since FAT partitions do not support permissions.
# When a file or a folder is copied from a FAT partition, it inherits
permissions from the destination folder.

Taken from
http://www.windowsnetworking.com/kba...artitions.html


So you rproblem might be related not to file/folder permissions, but to IIS settings for that
application folder.

Check the file permissions by right clicking on file in Expolorer and choosing Properties->Security
Jul 21 '05 #4
MuZZy wrote:

So you rproblem might be related not to file/folder permissions, but to
IIS settings for that application folder.

Check the file permissions by right clicking on file in Expolorer and
choosing Properties->Security


Does a web service run under ASPNET or IUSR_ ?
Jul 21 '05 #5
news.teranews.com wrote:
MuZZy wrote:

So you rproblem might be related not to file/folder permissions, but
to IIS settings for that application folder.

Check the file permissions by right clicking on file in Expolorer and
choosing Properties->Security

Does a web service run under ASPNET or IUSR_ ?


If i'm not mistaken, unless you enable anonymous access in IIS, it runs as ASPNET.
When anonymous is enabled, it runs as whatever you put as anonymous.

Check the settings for your web application in IIS Manager - you need to look in the "Directory
Security" tab in web site properties.
Jul 21 '05 #6

It looks like IUSR_ is was the key.

Once I granted IUSR permissions at the top level, the web service could
then unzip the file.

MuZZy wrote:
news.teranews.com wrote:
MuZZy wrote:

So you rproblem might be related not to file/folder permissions, but
to IIS settings for that application folder.

Check the file permissions by right clicking on file in Expolorer and
choosing Properties->Security


Does a web service run under ASPNET or IUSR_ ?

If i'm not mistaken, unless you enable anonymous access in IIS, it runs
as ASPNET.
When anonymous is enabled, it runs as whatever you put as anonymous.

Check the settings for your web application in IIS Manager - you need to
look in the "Directory Security" tab in web site properties.

Jul 21 '05 #7

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

Similar topics

1
by: richardlane | last post by:
Hi, basic question here - I'm struggling with the transfer from asp to asp.net a bit, especially in seeing the 'bigger picture' of how things are best structured. I have a website made up...
15
by: JustSomeGuy | last post by:
this doesn't want to compile.... class image : public std::list<element> { element getElement(key k) const { image::iterator iter; for (iter=begin(); iter != end(); ++iter) { element...
29
by: shaun roe | last post by:
I want something which is very like a bitset<64> but with a couple of extra functions: set/get the two 32 bit words, and conversion to unsigned long long. I can do this easily by inheriting from...
1
by: john diss | last post by:
hello there everyone.. I have created a class called "ProcessLog" inheriting from XmlDocument and two classes ("UploadedItem", "ProcessError") inheriting from XmlElement. I then have two...
11
by: Noah Coad [MVP .NET/C#] | last post by:
How do you make a member of a class mandatory to override with a _new_ definition? For example, when inheriting from System.Collections.CollectionBase, you are required to implement certain...
6
by: !!! Klutzo !!! | last post by:
I give permissions for ASPNET on a top level subdirectory. A windows program copies a file into the subdirectory, however, my web service cannot access the file because it does not have...
2
by: Charles Law | last post by:
I want a set of controls that all have a border, like a group box. I thought I would create a base control containing just a group box from which my set of controls could inherit. Assuming that...
3
by: Alex Satrapa | last post by:
There's some mention in the (old!) documentation that constraints such as foreign keys won't include data from inheriting tables, eg: CREATE TABLE foo ( id SERIAL PRIMARY KEY ); CREATE TABLE...
6
by: MSDNAndi | last post by:
Hi, I have a baseclass (non-static) with some static and some non-static methods/fields/properties. In the baseclass in one of the static methods I need to do something like " somelogic...
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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,...
0
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...

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.