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: Unable to edit hosts file

07 Jul 2016   #1
Ramioo

7 32bit
 
 
Unable to edit hosts file

Hello,

I have a laptop that it doesn't allow me to edit hosts file. I tried many ways first I tried to give myself permissions in properties - edit but it gave me 'access denied' when trying to apply.. And I tried a method I found on google is to open a notepad with administration then open the hosts file and edit it but it was the same result..

What is the issue here? could it be a simple thing I'm missing??


My System SpecsSystem Spec
.
07 Jul 2016   #2
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

Assuming you have administrator permissions, the easiest way I have found is to right-click on notepad.exe and "Run as Administrator"

Then load the host file into Notepad from inside notepad and edit

Allows edits without messing the permissions up (malware can access files with less security )
My System SpecsSystem Spec
07 Jul 2016   #3
Ramioo

7 32bit
 
 

Quote   Quote: Originally Posted by Barman58 View Post
Assuming you have administrator permissions, the easiest way I have found is to right-click on notepad.exe and "Run as Administrator"

Then load the host file into Notepad from inside notepad and edit

Allows edits without messing the permissions up (malware can access files with less security )
Hello, Sorry for the delayment.

It looks like the laptop is not on administrator account or something cause when I go to User Accounts in CP there's no administrator word under the name..

To clear things out.. The laptop isn't mine but it's for a close friend and I wanted to edit hosts file to remove facebook blocking and I can't call my friend to ask him for his user account atm..

Anyway, I'm not gonna ask you to tell me how can I edit hosts file under this situation cause it would sound bad lol so you can close the thread here

Thanks for your time.
My System SpecsSystem Spec
.

07 Jul 2016   #4
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

The whole point of having security on the hosts file is to better secure the system against malware re-directing net calls - and of course you have to have admin access to change this - it's the fault of the malware scum that this needs to be done and the problems this causes to legitimate users.

I always place my blocks to facebook and the like in a secure router and never need to touch the old Hosts files
My System SpecsSystem Spec
07 Jul 2016   #5
Ramioo

7 32bit
 
 

You're right about this..

But I just have a question irrelevant to this matter but about windows accounts. When I go to switch users I only see the user account I'm currently using and another one named new user which requires me to put a username and password but why I'm I not seeing the administrator account of my friend? is it hidden by some mean?
My System SpecsSystem Spec
07 Jul 2016   #6
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

Could be that the administrator account is hidden, there are various ways to get this to happen - but you need to speak to your friend to access this account
My System SpecsSystem Spec
07 Jul 2016   #7
Ramioo

7 32bit
 
 

Alright mate, thanks for the help
My System SpecsSystem Spec
Reply

 Unable to edit hosts file




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
When edit hosts file, it will reload with the default value.
Hi All, When I edited the file hosts in the etc folder, its saved successfully, but after 10 seconds, it will revert to default value. Any additional value will be removed. I already tried make it read-only, change owner, disable AV, disable Windows Firewall, disable UAC. any help will be...
System Security
unable to do any things with hosts file
Dear, I have installed windows7 home edition on my laptop. I have to enter ip address to access another application through host file but am unable to do any action either update delete or cut this file. Please help to find out this problem. thanks in advance.
System Security
How to edit the Hosts file in 7
Hi people :) I need help here, I have some older applications that wont work unless i change their 'update ip', (dont know what its called), in the hosts file. I have found numerous ideas on how to edit in the hosts file, but none of them has worked so far. When I run Notepad as...
Network & Sharing
Unable to edit a file
hello, I facing a strange problem in windows 7. I am running PHP and Apache web-server on my windows 7 platform. I have the php.ini file in my C:/ drive <Windows> folder. I tried to edit and save the file. After editing when I tried to save the file it tells me that this file is being used by...
System Security
Unable to edit/run a .bat file win7 sp1
Hi, this my first thread here, i have read some of the other threads regarding .Bat files and running them ,but none of the suggestions have so far worked for me, Here is the situation, i installed an old game R6Vegas2 to c:/games instead of the protected programe files(default install...
General Discussion
HOSTS File - Create a "Edit HOSTS file" Shortcut
How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet....
Tutorials


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 08:15.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App