In IIS on my windows vista ultimate pc why can I not change files in the inetpub?
<div class=content>I am logged in as administrator, and that is the only account on the pc, but when I try to save or edit a file in the inetpub folder, I get an error message that I must ask the administrator. I have file and folder sharing turned on.</div>
Access is deniedIISerrorIIS web sitesIIS 7.0Web Servercopy IISIIS install and setup in Windows Vitsa UltimateIIS inetpub
Just because you are logged in as administrator, your application is executing as IUSR or Network Service. Grant the appropriate permissions to this user.
You are running into an
UAC issue. You don't have access to c:\inetpub although the Administrators group has access to the folder and you are part of the Administrators group. If you have UAC enabled UAC takes your Administrator privileges away however. Welcome to UAC.
Here is an easy fix. Run the following command from an elevated command prompt (right click the "command prompt" icon and select "Run as Administrator").
This command will add full access for your user account to the INETPUB directory. Now the Administrator privileges which you don't have don't matter anymore because your account and not Administrators grant you access.
Hope this helps.
Thomas Deml
Group Program Manager
Internet Information Services
Microsoft Corp.
ram133
1 Post
Can not edit or save files in the inetpub folder
Dec 22, 2007 10:05 PM|LINK
In IIS on my windows vista ultimate pc why can I not change files in the inetpub?
<div class=content>I am logged in as administrator, and that is the only account on the pc, but when I try to save or edit a file in the inetpub folder, I get an error message that I must ask the administrator. I have file and folder sharing turned on.</div>Access is denied IIS error IIS web sites IIS 7.0 Web Server copy IIS IIS install and setup in Windows Vitsa Ultimate IIS inetpub
steve schofi...
5681 Posts
MVP
Moderator
Re: Can not edit or save files in the inetpub folder
Dec 22, 2007 10:38 PM|LINK
Just because you are logged in as administrator, your application is executing as IUSR or Network Service. Grant the appropriate permissions to this user.
Steve Schofield
Windows Server MVP - IIS
http://iislogs.com/steveschofield
http://www.IISLogs.com
Log archival solution
Install, Configure, Forget
thomad
552 Posts
Re: Can not edit or save files in the inetpub folder
Dec 23, 2007 06:39 AM|LINK
You are running into an UAC issue. You don't have access to c:\inetpub although the Administrators group has access to the folder and you are part of the Administrators group. If you have UAC enabled UAC takes your Administrator privileges away however. Welcome to UAC.
Here is an easy fix. Run the following command from an elevated command prompt (right click the "command prompt" icon and select "Run as Administrator").
icacls %systemdrive%\inetpub /grant %userdomain%\%username%:(OI)(CI)(F) /grant %userdomain%\%username%:F
This command will add full access for your user account to the INETPUB directory. Now the Administrator privileges which you don't have don't matter anymore because your account and not Administrators grant you access.
Hope this helps.
Group Program Manager
Internet Information Services
Microsoft Corp.