Mchl Posted August 27, 2008 Share Posted August 27, 2008 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. Quote Link to comment Share on other sites More sharing options...
ardyandkari Posted August 27, 2008 Share Posted August 27, 2008 i think i puked a little... that is possibly the dumbest error in existance...*muttering* stupid vista *muttering* Quote Link to comment Share on other sites More sharing options...
peranha Posted August 27, 2008 Share Posted August 27, 2008 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++. Quote Link to comment Share on other sites More sharing options...
corbin Posted August 28, 2008 Share Posted August 28, 2008 I can edit any file on my system with notepad under any username.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.