1. Although I had all configuration for network (ip adress, dns, gateway etc...) done correctly, I could not access network for some reason (via ethernet) Later I found out that there were too many entries in "hosts" tab of network manager. I cleaned all of them, reboot the machine, and finally I managed to access internet but this time I hit this problem you have been discussing. sudo or su does not work in such a case, I tried gksu gedit and it worked, so first of all thanks for the tip!
2. Another possible solution is "open system -> administration -> network", first unlock by your password, and click on the hosts tab. then enter "127.0.0.1" and as for alias enter the name of your machine. Close- it also works that way.
Guys
1. Although I had all configuration for network (ip adress, dns, gateway etc...) done correctly, I could not access network for some reason (via ethernet) Later I found out that there were too many entries in "hosts" tab of network manager. I cleaned all of them, reboot the machine, and finally I managed to access internet but this time I hit this problem you have been discussing. sudo or su does not work in such a case, I tried gksu gedit and it worked, so first of all thanks for the tip!
2. Another possible solution is "open system -> administration -> network", first unlock by your password, and click on the hosts tab. then enter "127.0.0.1" and as for alias enter the name of your machine. Close- it also works that way.
Gokhan