Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

HOSTS File (edit, rename, delete)

I can no longer edit, rename or delete the HOSTS file without booting up in the safe mode and doing it from there. This just started with the June 30, 2006 release. I get the following message:

"Cannot delete HOSTS: access is denied.
Make sure the disk is not full or erite-protected
and that the file is currently not in use."

I'm sure this is a new anti-hijacking scheme but if I can't access some sites that it blocks it will be rendered useless.
0
wfmitchell
Asked:
wfmitchell
  • 5
  • 2
  • 2
  • +7
1 Solution
 
r-kCommented:
Which release from June 30 do you mean specifically?

I have applied all the latest XP updates and can still edit and rename the HOSTS file.

Which version of Windows?
0
 
DaMaestroCommented:
I would probably check permissions and run FILEMON from SysInternals to monitor what program is locking it.
0
 
jhanceCommented:
I'm guessing that you've installed some anti-spyware utility that has "immunized" the HOSTS file.  This is not uncommon.  Either configure your anti-spyware to let you edit the HOSTS or disable it so you can edit.
0
Building an Effective Phishing Protection Program

Join Director of Product Management Todd OBoyle on April 26th as he covers the key elements of a phishing protection program. Whether you’re an old hat at phishing education or considering starting a program -- we'll discuss critical components that should be in any program.

 
rpggamergirlCommented:
Try and Download Hoster,
www.funkytoad.com/download/hoster.zip 
This will restore your Hosts file.
Press "Restore Original Hosts" and press "OK"
Reboot.


If that doesn't work, then let us look at your hijackthis log to eliminate malware\viruses as being the caused.

Please download HijackThis 1.99.1
http://www.cyberanswers.org/forum/uploads/HijackThis1991.exe
Open Hijackthis, click "Do a system scan and save a logfile" don't fix anything yet.

Then go to the below link and login using your Experts-Exchange username and password.
http://www.ee-stuff.com
Click on "Expert Area" tab
type or paste the link to your Question
"Browse" your pc to the location of your Hijackthis log and click "Upload"
Copy the resulting "url" and post it back here.


OR: paste the log to either of these sites:
1. http://www.rafb.net/paste/
then at the bottom left corner click "paste"
Copy the address/url and post it here.

2. or at --> http://www.hijackthis.de/ 
and click "Analyse", click "Save".  Then post the link to the saved list here.
0
 
lawyerboy780Commented:
I've run into this problem with files of different types, and although I haven't yet figured out what is causing the problem HijackThis hasn't been much help as it seems the problem is more like a "flipped switch"  something in the target file signals the OS that the target is in use.  If you have loads o' spare time, you can examine the files bit by bit, or you can try this work-around:  

Use Easy Recovery and recover the file to a different location.  After that's done, restart in safe mode, delete the old file, and copy the recovered file to the correct location

good luck
0
 
wfmitchellAuthor Commented:
I am running Windows XP home edition with all the updates and the June 30th HOSTS file.
0
 
wfmitchellAuthor Commented:
I have done what rpggamergirl suggested and analysed the Hijack This Log but nothing seems suspicous.
0
 
wfmitchellAuthor Commented:
HERE IS THE SOLUTION TO MY PROBLEM:


Why do I see "Access Denied when updating the HOSTS file?

There is a problem with certain versions of ZoneAlarm Firewall (v 6.5.700.000 -
6.5.714.000) where the HOSTS file is "locked" even though that option is unchecked in
the options. To resolve this problem:
1) ZoneAlarm Control Center > Firewall (left pane) > Main (tab in the right pane)
2) Advanced (button at the bottom) > and find "Lock hosts file" Check "Lock hosts file". Click OK.
3) Click Advanced (button at the bottom) Uncheck "Lock hosts file". Click OK.

You should now be able to update the HOSTS file, however until ZA resolves this problem, on the
next Windows restart the file will be locked again (even if that option is unchecked) ... hopefully ZA
will correct this shortly!
0
 
rpggamergirlCommented:
Oh I see, I know the recent updates of ZA locks the Homepage but I didn't know it locks hosts file as well.
Thanks for sharing the answer to your own question.
If you like, you can ask for this question to be FAQed and your points refunded.
Or asks for it to be deleted and points also refunded.


How do I close a question?
http://www.experts-exchange.com/help.jsp#hi9


I answered the question myself what do I do?
http://www.experts-exchange.com/help.jsp#hi70
0
 
ded9Commented:
do this in safe mode

ZoneAlarm->Firewall->Advanced->''check the lock host file check box''->OK->Advanced->''uncheck the the lock host file check box''->OK----------> host file is unlocked for SS&D to update.


Reps
0
 
ccsenetCommented:
Do you have spybot search and detroy?

If you do, open the program -> go to tools -> IE tweaks -> uncheck 'lock hosts file'
0
 
ded9Commented:
wfmitchell  any updates

Ded9
0
 
wfmitchellAuthor Commented:
As I said above I have solved the problem myself. It is a anomaly in ZoneAlarm. It does not require being in Safe mode. I would like for the question to be FAQed and added to the database for future searchers.
0
 
callitCommented:
jhance mentioned that possibility early on
0
 
wfmitchellAuthor Commented:
I consider Zone Alarm a firewall as opposed to anti-spyware like Spybot and Adaware.
0
 
NetminderCommented:
Closed, 100 points refunded.
Netminder
Site Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 5
  • 2
  • 2
  • +7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now