Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing IUSR account on Windows Server 2008 R2 / IIS7.5

I've been given the job of installing PHP5.4 on this machine. One of the manual installation steps is to configure the IUSR account to have specific permissions. The problem is, I see the IIS_IUSRS group, but no IUSR account. The only users listed are the Admin user, a Guest account, and a user for the security software. I'm not really the Windows server type, more of a *NIX guy - so this is getting a little frustrating. I've searched everywhere and haven't found a suitable answer, but I have learned a lot about IIS7.5 - so it hasn't been a total waste of time. I've tried several recommendations and found several similar problems, but nothing has worked so far. I've also just tried making the IUSR account myself, but to no avail. If anyone knows how to get this going, I will be ever so grateful.

like image 209
Thomas Wright Avatar asked Apr 05 '12 17:04

Thomas Wright


People also ask

How do I find my Iusr account?

Go to the "ServerName (domain\admin)" object. Right-click on Authentication and then select Open Feature. Check if the Anonymous Authentication option is enabled. Current users should be the IUSR account.

What is IIS Iusr account?

What is IUSR in IIS? By default, a new site in IIS utilizes the IUSR account for accessing files. This account is a built-in shared account typically used by IIS to access file content. This means that it will use the application pool's identity (user) to access file content.

What is the default IIS user?

The IUSR_MachineName account is the default identity that is used by IIS when Anonymous authentication is enabled. Anonymous authentication is used by both the File Transfer Protocol (FTP) service and the HyperText Transfer Protocol (HTTP) service. IIS 6.0 also contains a group that is named IIS_WPG .


2 Answers

After several hours of trying to figure this one out, I finally did. So, for anyone who may come across this same issue, here is the answer.

This is where, and how, I found the IUSR.

First, let me explain that I'm not sure what the particular settings and/or setup is which caused the IUSR to be hard to find on my system. However, I DID find it, so here it is: I right clicked on the folders/files of which I needed to give access to IUSR, and selected 'Properties'.

Click on the 'Security' tab => 'Edit' (under groups and users) => 'Add' (under groups and users)

This brings you to the 'Select Users, Computers, Service Accounts, or Groups' window.

Click on the 'Object Types...' button and just select everything and hit 'OK'.

Next, click on 'Locations ...' and select the parent-most option (this will most likely be the server itself) and hit 'OK'

next, click on the 'Advanced' button and select the 'Find Now' button.

You will see several search results. Some will be groups and others will be actual users.

Within this list, you will find the IUSR username. Select it, and hit 'OK'.

And there you have it.

I'm not sure why this happens, however, I suspect (remember, I'm not too savvy with Windows as a server) I suspect it has something to do with using an Active Directory server across all of our servers for authentication and security. The reason I believe this is because the IUSR user is not indicated with the name of the server I am working with even though most, but not all, of the other groups and user names are which were in the Search Results list after hitting 'Find Now'. And that is that. :)

like image 176
Thomas Wright Avatar answered Sep 21 '22 05:09

Thomas Wright


That's because IUSR is not user account but "built-in security principal" - when granting rights to a file or folder, the built in security principal is one of the category of users that can be specified, but it doesn't visible in lusrmgr.msc and can't be added to a group.

And about naming - some old docs still mention account IUSR_MACHINENAME which was in use with IIS 6, but starting from IIS 7 this account renamed to IUSR and no longer tied to machine...

For more details see article "IIS 6 vs. IIS 7 IUSR Accounts" which explain it thoroughly.

like image 33
Mikhail Avatar answered Sep 18 '22 05:09

Mikhail