Connecting Tech Pros Worldwide Forums | Help | Site Map

Inheriting Permissions

!!! Klutzo !!!
Guest
 
Posts: n/a
#1: Jul 21 '05

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/


MuZZy
Guest
 
Posts: n/a
#2: Jul 21 '05

re: Inheriting Permissions


!!! Klutzo !!! wrote:[color=blue]
>
> 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?
>[/color]

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.
MuZZy
Guest
 
Posts: n/a
#3: Jul 21 '05

re: Inheriting Permissions


!!! Klutzo !!! wrote:[color=blue]
>
> 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?
>
>
>[/color]
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
MuZZy
Guest
 
Posts: n/a
#4: Jul 21 '05

re: Inheriting Permissions


MuZZy wrote:[color=blue]
> !!! Klutzo !!! wrote:
>[color=green]
>>
>> 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?
>>
>>
>>[/color]
> 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
>[/color]

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
news.teranews.com
Guest
 
Posts: n/a
#5: Jul 21 '05

re: Inheriting Permissions


MuZZy wrote:[color=blue]
>
> 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[/color]

Does a web service run under ASPNET or IUSR_ ?
MuZZy
Guest
 
Posts: n/a
#6: Jul 21 '05

re: Inheriting Permissions


news.teranews.com wrote:[color=blue]
> MuZZy wrote:
>[color=green]
>>
>> 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[/color]
>
>
> Does a web service run under ASPNET or IUSR_ ?[/color]

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.
Bagger Vance
Guest
 
Posts: n/a
#7: Jul 21 '05

re: Inheriting Permissions



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:[color=blue]
> news.teranews.com wrote:
>[color=green]
>> MuZZy wrote:
>>[color=darkred]
>>>
>>> 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[/color]
>>
>>
>>
>> Does a web service run under ASPNET or IUSR_ ?[/color]
>
>
> 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.[/color]
Closed Thread


Similar .NET Framework bytes