Administrator issues...

Florio

New member
Member
Local time
10:10 PM
Messages
77
Location
Italy
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).:mad:

Florio
 

My Computer

OS
Windows 7 Home Premium 64bit
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer

OS
Windows 7 Home Premium 64bit
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 Computer

OS
Windows 7 Ultimate x64 SP1
CPU
Intel Core i7-2600
Motherboard
Gigabyte GA-P67A-UD3P-B3
Memory
12 GB Patriot Extreme DDR3-1333
Graphics Card(s)
Nvidia GTX 470
Monitor(s) Displays
Dell UltraSharp 2209WA
Hard Drives
OCZ Agility3 240 GB, WD5001AALS, WD7501AALS
PSU
OCZ ModStream 700W
Case
CoolerMaster HAF 912 Advanced
Cooling
CoolerMaster Hyper 212 Plus
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 Computer

OS
Windows 7 Home Premium 64bit
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 Computer

Computer Manufacturer/Model Number
SMN-Productions
OS
Windows 7 x86/x64, Server 2008r2, Web Server 2008
CPU
i7 v2 3930K Steping stone 2
Motherboard
ASUS Rampage IV Extreme
Memory
G.SKILL Ripjaws Z Series 32GB
Graphics Card(s)
AMD HD 5770
Monitor(s) Displays
Acer 21" and Samsung 20"
Hard Drives
Patriot Pyro 80GB
PSU
1000 Watt
Case
HAF-X
Cooling
4 Fans
Keyboard
Black Widow Ultimate
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 Computer

OS
Windows 7 Home Premium 64bit
Save as and remove the .txt then drag and drop.
 

My Computer

Computer Manufacturer/Model Number
SMN-Productions
OS
Windows 7 x86/x64, Server 2008r2, Web Server 2008
CPU
i7 v2 3930K Steping stone 2
Motherboard
ASUS Rampage IV Extreme
Memory
G.SKILL Ripjaws Z Series 32GB
Graphics Card(s)
AMD HD 5770
Monitor(s) Displays
Acer 21" and Samsung 20"
Hard Drives
Patriot Pyro 80GB
PSU
1000 Watt
Case
HAF-X
Cooling
4 Fans
Keyboard
Black Widow Ultimate
I have performed this several times regarding a program I use...
 

My Computer

Computer Manufacturer/Model Number
SMN-Productions
OS
Windows 7 x86/x64, Server 2008r2, Web Server 2008
CPU
i7 v2 3930K Steping stone 2
Motherboard
ASUS Rampage IV Extreme
Memory
G.SKILL Ripjaws Z Series 32GB
Graphics Card(s)
AMD HD 5770
Monitor(s) Displays
Acer 21" and Samsung 20"
Hard Drives
Patriot Pyro 80GB
PSU
1000 Watt
Case
HAF-X
Cooling
4 Fans
Keyboard
Black Widow Ultimate
Yes, it worked. Thanks a lot. Much appreciated!!:D
 

My Computer

OS
Windows 7 Home Premium 64bit
Back
Top