471,344 Members | 1,006 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 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 2120
!!! 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by richardlane | last post: by
15 posts views Thread by JustSomeGuy | last post: by
29 posts views Thread by shaun roe | last post: by
11 posts views Thread by Noah Coad [MVP .NET/C#] | last post: by
6 posts views Thread by !!! Klutzo !!! | last post: by
2 posts views Thread by Charles Law | last post: by
3 posts views Thread by Alex Satrapa | last post: by
reply views Thread by Ronak mishra | last post: by

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.