Re: IIS 6 Logfiles inherit permissions attribute

From: Bernard (qbernard_at_hotmail.com.discuss)
Date: 05/11/05


Date: Wed, 11 May 2005 12:14:28 +0800

Not sure if this is by design. but those log paths created by IIS will NOT
inherit the permissions from parent directory. I know, it's really
troublesome to manually set it, but that's the only way to change it. You
can try tools like xcacls.exe to set it.

-- 
Regards,
Bernard Cheah
http://www.microsoft.com/iis/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/
"Ducks" <Ducks@discussions.microsoft.com> wrote in message 
news:0CCE2907-E4DA-4B5B-A4C0-ED5AE95BEEF5@microsoft.com...
> We are scripting the move of the IIS logfiles and setting the appropriate
> permissions at the root directory for the IIS logfiles. 
> d:\data\iis\logfiles.
> The issue occurs when IIS creates the W3SVC dirctory and log file, the
> permissions we set at  d:\data\iis\logfiles directory with the inherrit
> permissions enabled do not carry down to the directory W3SVC that IIS 
> creates
> when the site is hit for the first time. The same behavior holds true if 
> we
> leave the extended logging pointed to the default logging directory when 
> IIS
> installed. Only permissions that are set at "W3SVC, which IIS creates" are
> the "default permissions" for IIS for this directory which are 
> Administrator
> and the System accounts. If a file is manually created at this location 
> the
> new folder carries the inherrit permissions attribute flag as expected.
>
> "Jeff Cochran" wrote:
>
>> On Mon, 9 May 2005 14:28:04 -0700, "ThomsonWest"
>> <ThomsonWest@discussions.microsoft.com> wrote:
>>
>> >During our build process and IIS 6 install we move the IIS log files to 
>> >a
>> >non-OS partition local to the server and set the NTFS permissions to 
>> >allow a
>> >specific user group read access to the IIS logfiles directory. Once a 
>> >user
>> >hits the website IIS creates a directory W3svcX for each site. In doing 
>> >so
>> >the inherit permissions attribute does not carry down from the parent
>> >directory to the IIS logfiles directory (W3SVC?) as it did in IIS 5.
>>
>> That's a Windows thing.  Make sure the appropriate accounts in your
>> group have the appropriate rights.  Check a Windows admin group for
>> help and further detals.
>>
>> >Any suggestions short of pre-creating each "W3svcX" directory that will
>> >allow IIS to create the log file directory and log file so the NTFS
>> >permissions we set in our install process also carry down to the 
>> >directories
>> >IIS creates? Manually creating a directory at the parent will have the
>> >inherit permissions checked in the same directory without any issues.
>>
>> Again, not an IIS issue but rather a Windows administration issue.
>> You could script the directory creation before the logfiles are
>> written of course, along with scripting correct permissions.
>>
>> Jeff
>> 


Relevant Pages

  • Re: IIS 6 Logfiles inherit permissions attribute
    ... HTTP.SYS will set its own ACLs when it creates the log file and directory. ... but those log paths created by IIS will NOT ... > permissions at the root directory for the IIS logfiles. ...
    (microsoft.public.inetserver.iis.security)
  • RE: no OWA
    ... have the correct permissions was the "inetpub" folder. ... Correct the settings in IIS: ... click to check the "Hide All Microsoft Services" ...
    (microsoft.public.windows.server.sbs)
  • Re: Minimum NTFS Permissions - Theres such a thing???
    ... ?2001 Microsoft Corporation. ... HOW TO: Set Minimum NTFS Permissions Required for IIS 5.0 to Work WGID:198 ... " List Folder Contents" ...
    (microsoft.public.inetserver.iis.security)
  • Re: FTP control
    ... > I would like to use NTFS security settings to control who ... I would suggest getting a third party FTP server, ... if you set quota and these permissions for that group you can ... Information Server (IIS) Web site, ...
    (microsoft.public.win2000.security)
  • Re: IIS 6 Logfiles inherit permissions attribute
    ... > HTTP.SYS will set its own ACLs when it creates the log file and directory. ... but those log paths created by IIS will NOT ... > Bernard Cheah ... >> permissions at the root directory for the IIS logfiles. ...
    (microsoft.public.inetserver.iis.security)