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: Hosts: always Access Denied or asking for Admin permissions

03 Dec 2011   #1
DudeOnFire

Windows 7
 
 
Hosts: always Access Denied or asking for Admin permissions

So I've been trying to modify my hosts file for a while now. On and off because I was fed up with searching and trying different things then always ending up failing.
So that is why I am posting on this forum, asking for help from you guys.

So far I have tried:
  • Unchecking Read-Only for the file and the 'etc' folder
  • Opening Notepad as administrator
  • Taking ownership
  • Activating the 'Hidden Admin Account'
  • Made sure I had all the right permissions for the file (right click 'hosts', properties, security, etc.)

I might or might not have forgotten something. Also, there is only one account on my laptop and it is me. And I am the admin.

Thank your for reading.


My System SpecsSystem Spec
.
03 Dec 2011   #2
writhziden

Windows 7 Home Premium 64 Bit
 
 

I was able to do it through notepad running as an administrator... What happened when you tried? Can you upload a screenshot?
My System SpecsSystem Spec
03 Dec 2011   #3
DudeOnFire

Windows 7
 
 

Quote   Quote: Originally Posted by writhziden View Post
I was able to do it through notepad running as an administrator... What happened when you tried? Can you upload a screenshot?
Here's a screenshot of what happens when I open the hosts file with Notepad as admin.
http://dl.dropbox.com/u/2380144/Scre...1_54531_pm.png
My System SpecsSystem Spec
.

03 Dec 2011   #4
writhziden

Windows 7 Home Premium 64 Bit
 
 

What antivirus are you running?
My System SpecsSystem Spec
03 Dec 2011   #5
DudeOnFire

Windows 7
 
 

Quote   Quote: Originally Posted by writhziden View Post
What antivirus are you running?
I am using Kaspersky Internet Security 2011 11.0.2.556.
My System SpecsSystem Spec
03 Dec 2011   #6
writhziden

Windows 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by DudeOnFire View Post
Quote   Quote: Originally Posted by writhziden View Post
What antivirus are you running?
I am using Kaspersky Internet Security 2011 11.0.2.556.
That is probably not the issue then. I've heard of some software's firewall programs causing issues with opening the hosts file. The only workaround I've found for people in your situation is to change the file through Safe Mode
My System SpecsSystem Spec
03 Dec 2011   #7
DudeOnFire

Windows 7
 
 

Booting into Safe Mode to edit my hosts file actually worked! I should have thought of that! Thank you for all your help.
My System SpecsSystem Spec
04 Dec 2011   #8
logicearth

Windows 10 Pro (x64)
 
 

Could have just dragged the host file to your desktop edit it there, then moved it back....
My System SpecsSystem Spec
04 Dec 2011   #9
DudeOnFire

Windows 7
 
 

Quote   Quote: Originally Posted by logicearth View Post
Could have just dragged the host file to your desktop edit it there, then moved it back....
I'll try that next time I need to edit my hosts file again! Thank you!
My System SpecsSystem Spec
04 Dec 2011   #10
writhziden

Windows 7 Home Premium 64 Bit
 
 

Quote   Quote: Originally Posted by DudeOnFire View Post
Quote   Quote: Originally Posted by logicearth View Post
Could have just dragged the host file to your desktop edit it there, then moved it back....
I'll try that next time I need to edit my hosts file again! Thank you!
I'm not sure that will work, but it is worth a try. Since you had access denied, you wouldn't have been able to move it, and copying it and then trying to move it back would have likely resulted in "Access is denied" when you tried to replace the file.
My System SpecsSystem Spec
Reply

 Hosts: always Access Denied or asking for Admin permissions




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Folders Locked - Security Permissions Denied - Admin Acount?
Im running Win 7 off an SSD and my girlfriend got jealous over how fast my PC is, so she bought herself on SSD for Black Friday as well as a new 1TB HDD to use for her games, and data, etc; and now wants me to set up her new SSD so only her Win 7 is running off it like mine is.. I was going to...
System Security
Ownership, permissions and now access denied
I have a WD elite hard drive that was set up on my old computer. I had changed ownership on the drive and used the Smartware to do backups. I'm pretty sure that I deleted some of the other owners when I was there too. I have a new computer and was able to change ownership back to me and can...
General Discussion
Access Denied(despite ownership/permissions)
My storage drive has been showing signs of wear recently, so I have purchased a new one and was in the process of transfering files from one drive to the next. However I have come upon an issue regarding permissions. A seemingly random selection of files and folders have been denying me access to...
General Discussion
Access/Permissions denied messages
I am trying to transfer all my old Windows XP based folders, files, music (itunes), pics etc etc stored on an external hard drive (buffalo mini station usb 3.0) to my new laptop that uses Windows 7. Only I am confronted time and again with these "access denied", "no permission" messages. I have...
General Discussion
F-f-frustrated with Permissions & Access Denied!!!
This is part editorial and a question. I am fed up, frustrated and furious with constantly having to "play games" with Permissions and Security and "denied access". First of all, I don't understand why Windows 7 Home Version is NOT designed for home use but apparently for some large corporation...
Network & Sharing
Access Denied Permissions Gone due to XCOPY
I used xcopy in an admin cmd prompt, just as a test to learn how to use it. I asked it to copy a small directory from one HDD to another. It did but now the entire partition on the destination drive is locked - "Access Denied." I didn't add anything crazy to the xcopy switches though I did...
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 09:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App