473,773 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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/

Nov 16 '05 #1
6 3093
!!! 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.
Nov 16 '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
Nov 16 '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
Nov 16 '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_ ?
Nov 16 '05 #5
news.teranews.c om 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.
Nov 16 '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.c om 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.

Nov 16 '05 #7

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

Similar topics

1
1878
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 primarily of aspx pages. I have separated out the common <head> as an .ascx file and intend to do the same for other common regions of html. In the aspx.vb I have code that is common to all pages. For example a sub which is passed a parameter to tell...
6
2284
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 permissions. Shouldn't the file automatically inherit permissions by being dropped into that top level subdirectory?
15
1714
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 &elem(*iter);
29
5903
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 bitset<64>, but I know that STL has no virtual destructor. Can I get around this by calling the baseclass destructor explicitly in my derived class? Is there another way to get all of the bitset<64> functionality without rewriting a lot of...
1
2447
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 classes ("UploadedTemplate", "UploadedPresentation") which inherit from "UploadedItem")... so far so good. I have overriden the CreateElement method of "ProccessLog" and it creates the correct elements as expected. The problem is I need to override...
11
2168
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 methods, such as public void Add(MyClass c). How can I enforce the same behavior (of requiring to implement a member with a new return type in an inherited class) in the master class (similar to the CollectionBase)? I have a class called...
2
1813
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 this is the right approach (please tell me if it is not), how then do I make it so that the group box cannot be moved around on my set of controls, but is also able to act as container for other controls? If I leave the modifier of the group box...
3
5385
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 bar ( attribute integer NOT NULL ) INHERITS (foo);
6
1776
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 .... CallToStaticMethod();
0
10264
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6717
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
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
3
2852
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.