Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - Administrator issues...

 
11-27-2010   #1


Windows 7 Home Premium 64bit
 
 

Administrator issues...

Wasn't really sure which forum to place my question in, but this seemed the safest bet...

I'm trying to modify the hosts file (.txt document) in Windows-System32-drivers-etc. to get a particular program to run, but cannot save the file once I've made my changes; I'm told I do not have administrator privileges (even though I am the administrator and only user of this PC).

I am unsure of how to go about this; I've tried changing the 'read only' status of the folder via 'properties', but cannot seem to accomplish this either. Could someone kindly give me some simple, step-by-step instructions? (I am told to save the file in 'documents' with a different name, but this defeats the purpose of my changes).

Florio

My System SpecsSystem Spec
11-27-2010   #2


 
 


Open an elevated Command Prompt, then enter these commands

cd \Windows\System32\drivers\etc
attrib -r hosts
notepad hosts

make your changes

attrib +r hosts
exit (to close the Command Prompt)
My System SpecsSystem Spec
11-27-2010   #3


Windows 7 Pro
 
 


Why does this happen? Does anyone know?
My System SpecsSystem Spec
.


11-27-2010   #4


Windows 7 Home Premium 64bit
 
 


Thanks Ztruker,
I'll try this tomorrow morning (it's now 1.30 a.m., and I'm going to bed!)
Will get back to you if I have any further problems.
My System SpecsSystem Spec
11-27-2010   #5


Windows 7 Ultimate x64 SP1
 
 


Quote   Quote: Originally Posted by Ravanx View Post
Why does this happen? Does anyone know?
Because it is Windows 7 protecting itself from malware. By now, thanks to Vista, people should be aware that they can't just go editing system files with UAC enabled, or without full admin privs. In the event you do need to edit such a file, you can simply run it as an admin (right-click option) and be done with it.

* I'm pretty sure that would be an option if UAC is enabled. I have it disabled on the computer I'm using right now.
My System SpecsSystem Spec
11-30-2010   #6


Windows 7 Home Premium 64bit
 
 


Quote:
Open an elevated Command Prompt, then enter these commands

cd \Windows\System32\drivers\etc
attrib -r hosts
notepad hosts

make your changes

attrib +r hosts
exit (to close the Command Prompt)
I opened the elevated Command Prompt, but was told that access is denied.
I am not given the option of accessing the hosts file as an admin (right click), since it is not an exec. file but a text file.
Any further suggestions welcomed!
Florio
My System SpecsSystem Spec
11-30-2010   #7


Windows 7 x86/x64, Server 2008r2, Web Server 2008
 
 


Open the hosts file make your changes. save it to your desktop. drag and drop the one you just created into the proper folder. it will ask you to approve. you click okay and its changed.
My System SpecsSystem Spec
11-30-2010   #8


Windows 7 Home Premium 64bit
 
 


Thanks, I've done that, but now I have two hosts files in the etc folder (i.e., my modified file did not substitute the original one).
The original has no real tag (it's just labelled file, and has to be opened with notepad) whereas my modifed version is a .txt file. Should I delete the orginal? I'm a bit wary about doing this since it is not a .txt file, but in any case am sure that I won't be able to do remove it (hence my original question regarding administrator privileges).
My System SpecsSystem Spec
11-30-2010   #9


Windows 7 x86/x64, Server 2008r2, Web Server 2008
 
 


Save as and remove the .txt then drag and drop.
My System SpecsSystem Spec
11-30-2010   #10


Windows 7 x86/x64, Server 2008r2, Web Server 2008
 
 


I have performed this several times regarding a program I use...
My System SpecsSystem Spec
Reply

 Administrator issues... problems?



Thread Tools



Similar Threads for: Administrator issues...
Thread Forum
File permissions, administrator rights, sharing issues Microsoft Office
Built-in OEM Administrator Account Issues General Discussion
Disable Windows 7 Ultimate Updates administrator issues Windows Updates & Activation
Administrator account issues General Discussion
Administrator Issues General Discussion


All times are GMT -5. The time now is 11:08 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30