Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to grant identity ApplicationPoolIdentity read rights to folder within my site

On our Windows 2008 R2 server I have a site running under the default ASP.NET v4.0 application pool. The identity of ASP.NET v.4.0 app pool is set to "ApplicationPoolIdentity" (I guess this is default).

How do I grant this identity access to read from a custom folder within my site. I have tried "Application Pool Identity" and "ApplicationPoolIdentity" but both gives me:

An object named "Application Pool Identity" cannot be found.

Bonus question = should I instead forget about all this and make the change to store the files in app_data folder? Would that solve the issue?

like image 534
Muleskinner Avatar asked Nov 01 '11 11:11

Muleskinner


People also ask

How do I give permission to application pool identity?

Click the Locations button and make sure that you select your computer. Enter IIS AppPool\<myappoolname> (eg: IIS AppPool\PK Protect) in the Enter the object names to select: text box. Click the Check Names button and click OK. Check Modify under the Allow column, and click OK, and OK.


1 Answers

ICACLS <folder> /grant "IIS AppPool\nameoftheapppool":WRX did not work for me, it gave an error:

Invalid parameter "IIS AppPool\nameoftheapppool" 

but, the following did work:

ICACLS <folder> /grant "IIS AppPool\nameoftheapppool:WRX"
like image 139
karlm Avatar answered Sep 28 '22 11:09

karlm