Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Problem editing HOSTS file

  • 06-09-2006 5:40pm
    #1
    Closed Accounts Posts: 279 ✭✭


    I'm trying to add a website to the HOSTS file (C:\WINDOWS\SYSTEM32\DRIVERS\ETC\) so that it will block access to the site.

    The problem is that when I try to save the edited file, it says
    Cannot create the C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS file
    
    Make sure that the path and filename are correct
    



    Help!


Comments

  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    Browse to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\
    Right-click on HOSTS
    Open With... Notepad.
    Edit. Save. Close. Change to Read-only.


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    Or you could do what I did...

    create a shortcut on your start menu pointing at:
    "C:\WINDOWS\system32\notepad.exe C:\WINDOWS\system32\drivers\etc\hosts"
    (leave in the quote-marks)

    Call it "Edit local hosts file" or something.

    Then again, perhaps you're getting that error for another reason. In Windows XP, the hosts file is located in this folder, but in other versions of Windows it's located elsewhere. What version of Windows are you running?

    Incidentally, why would the file need to be read only, Karoma?


  • Closed Accounts Posts: 279 ✭✭adam_ccfc


    Karoma wrote:
    Browse to C:\WINDOWS\SYSTEM32\DRIVERS\ETC\
    Right-click on HOSTS
    Open With... Notepad.
    Edit. Save. Close. Change to Read-only.
    I cannot save the file (see above). It is not currently marked Read Only so that is not the problem and I am using Windows XP. I have Admin rights.



    :confused:


Advertisement