locked
You don't currently have permission to access this folder RRS feed

  • Question

  • User1190714769 posted

    Hello, I have a problem.
    When I use IIS, Log files save default path that %SystemDrive%\inetpub\logs\LogFiles.
    So, I move the path(%SystemDrive%\inetpub\logs\LogFiles) and see W3SVC1 folder.
    Double click this folder, I meet the 'You don't currently have permission to access this folder.'
    Sure, I can click Continue button and solve this problem.
    However, this folder makes continually. (If IIS site is running)
    For examples, When IIS makes new folder W3SVC2, I meet same message.
    But I don't want meet this message. When IIS makes new folder, I want to access this folder automatically not using script.
    I think that change IIS setting is solve this problem. But I don't know method.
    Please Help me~

    Tuesday, July 16, 2019 12:15 AM

All replies

  • User-848649084 posted

    Hi,

    You face this issue because everyone does not have permission to access the system folder. could you please share which use you are trying to access log files? you can resolve this issue by giving an appropriate user permission to the LogFiles folder. you can also assign Everyone full control permission to the folder. 

    Regards,

    Jalpa

    Tuesday, July 16, 2019 3:02 AM
  • User1190714769 posted

    Thank you for your answer.

    But I want to apply forever.

    When website is updated, my IIS makes new log folder automatically.

    Then, I should try your solution again.

    But, I don't want to do again.

    I want to control that IIS makes folder option.

    So I don't have to your solution again.

    What can I do??

    Tuesday, July 16, 2019 7:49 AM
  • User-848649084 posted

    if you do not want to assign permission manually every time then give permission to the log folder and set the advance setting to apply this setting to the subfolder and files. 

    You can refer below link if you want to use PowerShell scripting:

    https://superuser.com/questions/625975/iis-log-folder-permissions-not-being-inherited

    Tuesday, July 16, 2019 8:24 AM
  • User1190714769 posted

    I cannot find Permission Entry for LogFiles.

    My OS is Windows 10 Pro.

    I can open LogFiles Properties. 

    Please explicate detail how to go Permission Entry for Logfiles menu.


    +++

    I find Advanced button in LogFiles Properties.

    When click this button, I see IUSR, Full control, Inherited from- None, Applies to- This folder, subfolders and files

    But, Stop IIS and remove log folder 'W3SVC1' and Start IIS. Then, I visit my web site. 

    Then, IIS makes new log folder 'W3SVC1'.

    But, same problem occurred....

    Tuesday, July 16, 2019 8:34 AM
  • User-848649084 posted

    Try to follow below steps:

    • go to the C:\inetpub\logs path.
    • Right, click on the LogFiles folder->select properties->in properties select the security tab->select advance.

    • In advance security setting you can find add and enable inheritance. select enable inheritance and then select add option to add user permission.

    • In the permission entry for log file tab select principal and give permission to the folder as shown in below image.

    Tuesday, July 16, 2019 8:57 AM
  • User1190714769 posted

    Thank you for your detail answer.

    I can find menu 'Permission Entry for LogFiles'.

    And I checked the all options. My IUSR option is same your answer.

    But same problem occurred.

    For the test, I stop IIS and remove log folder 'W3SVC1' and restart IIS.

    After, I visited my IIS web site. and IIS makes new log folder 'W3SVC1'.

    For example, properties of new log folder(W3SVC1) security tab

    You must have Read permissions to view the properties of this object. Click Advanced to continue.

    What can I do??

    Tuesday, July 16, 2019 9:09 AM
  • User-848649084 posted

    could you explain what is your user type like administrator or another user? and for 'Permission Entry for LogFiles' you need to select add option.

    Tuesday, July 16, 2019 9:14 AM
  • User1190714769 posted

    My Owner is ---------------------------------------------

    And I clicked Add button and add IUSR.

    Tuesday, July 16, 2019 9:17 AM
  • User-848649084 posted

    please remove machine name from your above post.

    Try to set everyone and administrator permission to the log folder.

    Tuesday, July 16, 2019 9:20 AM
  • User1190714769 posted

    What do you mean machin name? 

    Do you mean that Advanced Security Settings for LogFiles > Owner value is empty??

    or Set owner is everyone?

    Tuesday, July 16, 2019 9:25 AM
  • User-848649084 posted

    no just edit above post and remove machine name for security purpose.

    Tuesday, July 16, 2019 9:27 AM
  • User1190714769 posted

    Thank you, I modified my post. 

    However, I cannot resolve original problem...

    Tuesday, July 16, 2019 9:30 AM
  • User-848649084 posted

    If you still facing the same problem you can change the log file path to where you have permission to access file or folder like D drive or any other drive. 

    Tuesday, July 16, 2019 9:32 AM
  • User1190714769 posted

    Yes, I can change the log file path 'D:\logFiles'.

    But original problem is same.

    IIS always makes folder 'W3SVC1' in root Log File Directory.

    In my case, IIS makes new folder in 'D:\logFiles\W3SVC1..   

    When W3SVC1 folder is double-clicked, I meet the message 'You don't currently have permission to access this folder.'

    What I want is:

    I want to keep the permissions of the parent folder when IIS create the log folder Not using script.

    Is it impossible?

    Tuesday, July 16, 2019 11:53 PM
  • User-848649084 posted

    In my opinion, it's not possible. you need to write a script or you can do it manually applying permmsion to the folder or file permission.

    Wednesday, July 17, 2019 6:41 AM
  • User1190714769 posted

    Although I did not solve it, thanks for you kind answers.

    Thursday, July 18, 2019 2:28 AM
  • User-848649084 posted

    Could you share your log folder permission snapshot? 

    Friday, July 19, 2019 2:20 AM