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
https://forums.phpfreaks.com/topic/121488-vista-bug/page/2/#findComment-626978
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
https://forums.phpfreaks.com/topic/121488-vista-bug/page/2/#findComment-627371
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.