Jump to content

Vista bug


TheFilmGod

Recommended Posts

That's a quite possible explanation. I was just too puzzled with what was happening, and tried lots of different settings. I guess I'm lucky my system works after that at all. ;)

 

All's well that ends well. Solution is found, and my hosts file has the entries I needed to be there (and no extras that denied me access to http: //localhost )

 

I have a feelling that my previous post might sounded a bit harsh. Sorry about it. It wasn't intended.

Link to comment
Share on other sites

It's exactly the same as GNU/Linux:

 

daniel@degeberg:~$ echo 'hi' >> /etc/hosts
-sh: /etc/hosts: Permission denied
daniel@degeberg:~$ sudo -i
[root@degeberg ~]# echo 'hi' >> /etc/hosts
[root@degeberg ~]#

 

In Vista's GUI using Notepad this corresponds to:

1) Open Notepad normally. Browse to and open C:\Windows\System32\drivers\etc\hosts

2) Edit something

3) Save

 

This will give you this error:

Cannot create the file C:\Windows\System32\drivers\etc\hosts file.

 

Make sure that the path and file name are correct.

 

Then do this:

1) Right click on the Notepad icon

2) Select "Run as administrator"

3) Browse to and open C:\Windows\System32\drivers\etc\hosts

4) Edit something

5) Save

 

Then it will save successfully.

 

Quod erat demonstrandum.

 

Not meaning to keep the fight going, but this is not correct.  I am logged in as administrator (by this I mean the built in administrator account), and it does not work that way, I cannot edit files with notepad, but can with notepad++. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.