Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Administrator issues...

27 Nov 2010   #1
Florio

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
.
27 Nov 2010   #2
Ztruker

Windows 10 Pro X64
 
 

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
27 Nov 2010   #3
Ravanx

Windows 7 Pro
 
 

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

27 Nov 2010   #4
Florio

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
27 Nov 2010   #5
DeaconFrost

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
30 Nov 2010   #6
Florio

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
30 Nov 2010   #7
mckillwashere

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
30 Nov 2010   #8
Florio

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
30 Nov 2010   #9
mckillwashere

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

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

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...




Thread Tools




Similar help and support threads
Thread Forum
Administrator issues
Hey. Thanks for any help in advance. I have recently reinstalled windows 7 on drive C (one hard drive divided into C and D). On drive D I am trying to delete a folder and won't let me. Says I don't have administrator rights. When I look into the security tag in the folder properties it...
General Discussion
Administrator Account/Privilege Issues
I have a problem, I recently bought used laptop with the Windows Seven operating system installed. Also, it came with two accounts + default admin and guest. One account I do not have access to, and one standard user account. I want to install, and I can not do this with the standard user...
General Discussion
Administrator Account Issues
Hi, I may have done a big mistake while configuring a PC. There were two accounts, a user-type and an administrator-type. I only wanted to use the user-type and disabled the Admin account from lusrmgr.msc without thinking that the other account had no administrative rights. Therefore, I can't...
General Discussion
Built-in OEM Administrator Account Issues
I've read the tutorial here on enabling/disabling built-in user accounts, but I'm still in a bit of a jam here. Here's the situation... My computer is two weeks old and the operating system (Windows 7 Professional 64-bit) was installed by the retailer where I purchased the computer. Since my...
General Discussion
Administrator account issues
Hi everyone. I have a Thinkpad that I have through a laptop program at my school. I recently had them re-image it with Windows 7 for free. Now I'm having issues because my account is not an administrator account and it is the only account on the computer. So now whenever I try to install any...
General Discussion
Administrator Issues
I've installed 7 on two comps now and on both I have had issues with being an administrator. I somehow managed to tweak one of them but I'm having trouble with the newer one. I have a main account (which is an administrator) but I do not have the "run as administrator" command and when i try to...
General Discussion


Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 21:08.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App