Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Setting directory permissions for user group IIS_IUSRS

If you’re working with IIS there is a high likelihood that at some point you’ll want to write data to a log file and/or enable permissions for DLLs and or executables to run in a specific Directory

To enable executables to run you’ll need to modify the CGI/ISAPI restrictions as described in Setting up ISAPI on IIS 10.0.

For both writing files and running executable code you also need to modify the file permissions for user group IIS_IUSRS. 

Confusion

I’ve witnessed quite a bit of confusion as to how modifying the user permissions should be done – many people don’t add the rights for IIS_IUSRS but instead, add the rights for the global user Everyone or for themselves. This punches a huge whole in your server’s security. It is far better and far safer just to modify the permissions for just the required user on just the directory you’re working with. To show you how to do this I’ve created a video of the process and a step by step set of instructions.

Step by step instructions

  1. Right click on the directory that you want to change the permissions. A context menu is displayed. Choose Properties….

  2. The directory Properties dialog is displayed.

  3. Select the Security tab.

  4. Click Edit…. The Permissions for dialog is displayed.

  5. Click Add…. The Select Users or Group dialog is displayed.

  6. Type the IIS users group name IIS_IUSRS into the edit field then click Check Names. Windows will validate the group name (or user name if you’re specifying a user) then display the name in the edit field with an underline.

  7. Click OK to accept this user group name. The Permissions for dialog is updated.

  8. Scroll down the list of permissions and ensure that the execute and write permissions are enabled.
  9. Click OK.  At this point you may get some errors as the contents of the directory are enumerated – some of them may not update to the appropriate permissions. That’s OK because we’re interested in updating the permissions of the directory itself (so that we can write log files or execute ISAPI DLLs etc), we’re not interested in updating the permissions of the contents of the directory. If you get any warning dialogs click Continue to dismiss the warnings.

  10. The Security tab is updated to include the new IIS_IUSRS group and it’s permissions. Click OK to accept the new values.

You have successfully updated the permissions for a directory for user group IIS_IUSRS.

The post Setting Directory Permissions for user group IIS_IUSRS appeared first on Software Verify.



This post first appeared on Perfect Imprecision, Thoughts On Memory Leaks, Per, please read the originial post: here

Share the post

Setting directory permissions for user group IIS_IUSRS

×

Subscribe to Perfect Imprecision, Thoughts On Memory Leaks, Per

Get updates delivered right to your inbox!

Thank you for your subscription

×