Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS7 give ApplicationPoolIdentity access to a network location

I have a site in IIS7 that runs under ApplicationPoolIdentity.

Is it possible to give the ApplicationPoolIdentity access to network files?

I know that I can give access to local files by giving rights to the user: iisapppool\{apppoolname} but is there a way to give this ID access to files on the network?

like image 505
kralco626 Avatar asked Sep 11 '13 20:09

kralco626


People also ask

How do you make sure that the application pool identity read access to the physical path?

Go to IIS Manager > Application Pools > Your domain's specific Application Pool > Advanced Settings. In Identity: click to change > Custom Account > Set > Enter User credentials from step 2, click OK and exit all.

What user is IIS running under?

By default, IIS (inetinfo.exe) is configured to run in the System account context, but you can use the Services console to change the identity of various services so that they run in a user account rather than the System account.


1 Answers

ApplicationPoolIdentity is a LOCAL user (generated by IIS, its identity is not known until runtime) thus any attempt to access anything on the network would result in it using the COMPUTER$ account.

Using ActiveDirectory you should then be able to grant the COMPUTER$ account access to the files you want.

Alternatively, using ActiveDirectory you could create a Domain User account, configure the application pool identity to use that domain user, and grant that user access to the network files.

Read more here about Application Pool Identities.

like image 180
Brock Hensley Avatar answered Oct 04 '22 22:10

Brock Hensley