Share via


IIS setup for SMB share

Question

Wednesday, July 17, 2019 11:11 AM

I just posted this to StackOverflow but figured I'd post here as I believe someone with expertise of IIS may be able to help with this issue...

I've got an SMB share setup in Windows located at  C:\vagrant\FileShare\site1 which is mapped using Vagrant from a host machine via Hyper-V.

I can read/write/modify any file or folder from host or guest **successfully **but as soon as I setup a site in IIS I get permission errors.

I setup my site in IIS manually with default settings, default application pool, and the correct path. I also assigned read/write permissions for IUSRNETWORKNETWORK SERVICE, and IIS_IUSRS just to avoid any permission issues but as you can see from the screenshot above, an error is being thrown by IIS.

What permissions should I be setting to access an SMB share via IIS? 

Thank you

All replies (1)

Thursday, July 18, 2019 3:18 AM

Hi joel,

According to your description,it seems that the IIS site has no permission to run config files in the folder which you share with SMB. So I suggest that you could just add the  permission as everyone in folder and also enable full control.

You could see as below:

Best Regards

Able