We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Can't Change Host File

Options
kah22
kah22 Posts: 1,875 Forumite
Part of the Furniture 1,000 Posts Name Dropper I've been Money Tipped!
My account type shows that I am currently logged in as administrator.

I want to change my Hosts file as I find it the best way to block sites and annoying ads. However, when I get to the Hosts and attempt to save the current Host file as hosts_old I receive the message saying that I don’t have permission to save in this location. Contact the administrator to obtain permission.

But surely if my account type shows that I am logged in as administrator I should be able to alter the account or save it as another name. Is there something I’m missing.

As always many thanks for the advice.

Comments

  • matttye
    matttye Posts: 4,828 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker Debt-free and Proud!
    Which version of Windows are you running?

    Try right clicking on the "etc" folder in %WINDIR%\system32\drivers\ and changing the permissions for administrator.
    What will your verse be?

    R.I.P Robin Williams.
  • frugal_mike
    frugal_mike Posts: 1,687 Forumite
    kah22 wrote: »
    My account type shows that I am currently logged in as administrator.

    I want to change my Hosts file as I find it the best way to block sites and annoying ads. However, when I get to the Hosts and attempt to save the current Host file as hosts_old I receive the message saying that I don’t have permission to save in this location. Contact the administrator to obtain permission.

    But surely if my account type shows that I am logged in as administrator I should be able to alter the account or save it as another name. Is there something I’m missing.

    As always many thanks for the advice.

    Could it be a misleading error message, and it won't let you rename because the file is in use? How are you attempting to rename the file? E.g are you trying to rename using explorer by right clicking on the file (i'm assuming this is windows)?

    Can you create a new empty file and copy the contents across?
  • S0litaire
    S0litaire Posts: 3,535 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    Have you got Anti-Virus running?

    I know some AV's real-time scan will stop you opening system files like hosts even if you are admin.

    Turn off real-time scanning or the Anti-virus itself first then see if you can change the hosts file.
    Laters

    Sol

    "Have you found the secrets of the universe? Asked Zebade "I'm sure I left them here somewhere"
  • NiftyDigits
    NiftyDigits Posts: 10,459 Forumite
    kah22 wrote: »
    My account type shows that I am currently logged in as administrator.

    I want to change my Hosts file as I find it the best way to block sites and annoying ads. However, when I get to the Hosts and attempt to save the current Host file as hosts_old I receive the message saying that I don’t have permission to save in this location. Contact the administrator to obtain permission.

    But surely if my account type shows that I am logged in as administrator I should be able to alter the account or save it as another name. Is there something I’m missing.

    As always many thanks for the advice.

    Why do you need to rename it anyway? IF you are using the MVPS HOSTs file, then running the MVPS batch file as Admin will do it for you.
  • frugal_mike
    frugal_mike Posts: 1,687 Forumite
    I assume to back it up in case the changes cause problems.
  • John_Gray
    John_Gray Posts: 5,843 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    It used to be a "bright idea" of Spybot - Search & Destroy to have enormous Hosts files for the very reason you suggest, but surely this idea has long since been deprecated, and replaced by more efficient methods?
  • RobTang
    RobTang Posts: 1,064 Forumite
    Because the HOSTS file (and the folder it is in) is owned by the admin group, the program you are editing the file in needs to running with escalated rights (Run as administrator)

    If you just open it normally it doesn't have the rights to edit the file
    John_Gray wrote: »
    It used to be a "bright idea" of Spybot - Search & Destroy to have enormous Hosts files for the very reason you suggest, but surely this idea has long since been deprecated, and replaced by more efficient methods?

    Not really, although there are some services that will do it at the DNS level (like open dns)
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.8K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.8K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.8K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.