Folder Permissions, I cannot use Inetpub
I recently installed IIS software on my windows 7 machine under my user that I created during the installation process. I have checked, and this user does belong the group Administrators, however I cannot save files to the c:/inetpub/wwwroot/ folder. What I have been having to do is save my files to another location and then copy them into the folder. This is a major hassle, so I tried changing the permissions and I get an error saying I need administrative privileges in order to change them. This is where my dilemma is, my user is a member of the Administrators group. Any suggestions? Thank you.
March 22nd, 2009 11:16pm

This is normal behavior. When you install IIS, the Inetpub\wwwroot folder becomes a protected system folder similar to how Program Files is now protected. Changing permissions and taking ownership will have no effect on that particular behavior. Since this is a location where a live site could be hosted, it is best to update the page, save it in another location so that you can test it. Once that is done, you then manually, by doing a unquestionable, deliberate act that you confirm by acknowledging a UAC prompt, copy the contents to the live, hosted folder. Looking at it from this perspective, the default behavior makes perfect sense.
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2009 4:46am

It makes little if any sense to me, and seems to have little logicto it.Web sites using asp or asp.net under development have to be stored in inetpub/wwwroot/sitefolder. I have been doing this for years with no problem. Does this mean that programs like Adobe Dreamweaver that use this system are now no longer usable under win7? How do you test a page that is outside Inetpub?If it is not legal to seve a file to Inetpub, why is it legal to copy a file to Inetpub?In addition, I have been unable to access the IIS 7.5 home page on my machine, as the technet pagewith the instructions as to how to do it are incorrect.hwalker1
August 18th, 2009 1:39am

Strange - I have no problem copying files to to my wwwroot folder. Dreamweaver works as it should, directly on wwwroot and its subfolders!________________ theWeissGuy
Free Windows Admin Tool Kit Click here and download it now
August 19th, 2009 6:16am

Strange - I have no problem copying files to to my wwwroot folder. Dreamweaver works as it should, directly on wwwroot and its subfolders!________________ theWeissGuy Whether you can or cannot, the following link shows you how to get round the built in block prvided by windows. http://forums.iis.net/t/1147354.aspx In case the link disappears, here is what to do - and it works fine - may even allow you to do the same for other files. ------------------------------------------------------------------------- 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. -------------------------------------------------------------------------------- ------- hwalker1
August 20th, 2009 11:21am

This seems useful but it doesn't work for me, as I get a message saying that my username is an invalid parameter. Interestingly, it's like my username is being truncated. That is, if my username was Firstname X. Lastname, the error message would read: Invalid parameter "Mydomain\Firstname" Good grief.
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2011 9:36pm

if you have any spaces in a parameter, you have to put it(the parameter) in quotes
May 11th, 2011 11:54am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics