Inheriting Permissions

K

!!! Klutzo !!!

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/
 
M

MuZZy

!!! Klutzo !!! said:
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.
 
M

MuZZy

!!! Klutzo !!! said:
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/kb...FileFolderpermissionsunderNTFSpartitions.html

Hope it helps,
Andrey
 
M

MuZZy

MuZZy said:
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/kb...FileFolderpermissionsunderNTFSpartitions.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
 
N

news.teranews.com

MuZZy said:
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_ ?
 
M

MuZZy

news.teranews.com said:
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.
 
B

Bagger Vance

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top