Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give NT AUTHORITY\IUSR access to shared folder content?

I find something related, but not same thing.

The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET and SQL Server 2008

My issue is that the files are shared on the network, and I would like to debug from local IIS, I find that all static files seems to be access denied (401.3)

I have used the trace system, and find that the IIS is accessing the source using "NT AUTHORITY\IUSR"

Url http://localhost:8451/umbraco_client/panel/images/panel_boxhead_h2_bg.gif 
App Pool Debug451 
Authentication anonymous 
User from token NT AUTHORITY\IUSR 
Activity ID 

I have set the shared folder to be accessible to everyone, and changed the application pool's identity to domain administrator.

I have also tried to use 'Network Service' as identity and assign Domain\MachineName$ full access to the shared folder...

It looks to me that iis always using "NT AUTHORITY\IUSR" to access static resouce? If so, how can I give access on a shared folder to a local account? Or how can I force IIS to use some other identity?


update: as there are some new answer to this old question which I gave up at that time. I accentually have encounter this similar issue again recently on a server running windows 2008 R2, which I resolved, and I would like to give some update.

I resolve the issue this time by add read permission to $ComputerName/Users. This seems only an issue with server environment, and not sure if related to any group policy or similar kind. Hope this might help someone in future.

like image 620
ccppjava Avatar asked Aug 17 '10 16:08

ccppjava


People also ask

How do I restrict access to a shared folder on my network?

Go to Manage Shared Folders and click 'Edit' for the desired Folder. Click on the Tools Icon next to the user or User Group you would like to restrict. Choose 'Restrict'


1 Answers

Once you have configured the user of the application pool to have access permission to the shared folder ( create a new user in windows and add it to the IUSER group, and add specifique access rights to the shared folder for that user), YOU HAVE TO change in IIS the Authentification settings: IIS->site that need access->Authentification settings -> anonymous authentification->edit->select aplication pool identity (instead of IUSER).

like image 88
isa Avatar answered Oct 05 '22 18:10

isa