Permissions Issue

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
I'm self hosting wordpress sites on a virtual server. I have a windows 2008 Server running mySQL.

I have about 5 wordpress sites running.

I can install plugins just fine, but when I try to update WordPress, I get an error. The plugins install from the wordpress admin page.

Looking at permissions, the plugins folder has the 'IUSR' account assigned full read/write permissions. However, the core WordPress folder does not.

If I add 'IUSR' as a user to the primary wordpress folder, and give it read/write, I can then update wordpress. Obviously, this is because when you log into the admin section of WordPress, you authenticate with wordpress, but from IIS's perspective you are still an anonymous user because you are hitting the server through the website. If I open up this IUSR account to read/write permissions, anybody hitting the site can potentially read/write anything in the folder and that's not good.

I don't feel comfortable giving the anonymous IUSR account access to read/write permissions. I'm ok doing it just for the upgrade, but I don't want to have to mod permissions on the account anytime I need to upgrade wordpress. I'm hoping there is an alternative user account that can be used. OR if there's a better way of doing this because right now to upgrade, I have to give the IUSR read/write access, perform the upgrade, then remove the permissions.

Is there a different account I can assign the permissions too? IIS services website requests to anonymous users via the IUSR account.
 

mikeymikec

Lifer
May 19, 2011
20,375
15,059
136
I don't know if Server 2008 calls it the same thing, I assume it does, but the user you may also need to assign permissions for is IWAM_COMPUTERNAME. That's the user that IIS apps run under typically.
 

TechBoyJK

Lifer
Oct 17, 2002
16,699
60
91
Well like I said, if I assign IUSR write permissions on the main folder, it works. But I don't think I want the IUSR to have write permissions full time.
 

mikeymikec

Lifer
May 19, 2011
20,375
15,059
136
Admittedly I didn't fully read your first post, sorry. What's the security level you've got set for IIS applications?

IIRC I think if you increase the security level, it then passes off IIS app work to the IWAM user, so IUSR's privs in those folders can be reduced to read only... reading your post again, I don't think I'm hitting the nail on the head though this may help.

I can't build up a confident picture in my head of what this app's privs requirements are. You refer to the 'plugins', 'core', 'admin' and 'primary' folders. What's the folder structure actually like, and presumably wordpress has to have write privs for a public-facing folder at some point, otherwise adding/updating a blog entry might be difficult.
 
Last edited: