/etc/hosts rewriting problem

Pablo Wolter pwolter at gmail.com
Mon Jun 6 00:54:38 UTC 2005


Martin Meredith wrote:

>What's the output of ls -la /etc/hosts ??
>
>Pablo Wolter wrote:
>  
>
>>Martin Meredith wrote:
>>
>>
>>    
>>
>>>Pablo Wolter wrote:
>>>
>>>
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>I use my laptop in home and office. For office I add manually a lot of
>>>>hosts under /etc/hosts as any linux/unix user use to do. But when I came
>>>>to home and click the icon of Network Connection in the right upper
>>>>corner of the screen and select the "home" location my /etc/hosts file
>>>>is empty and only showing the IP address of the hosts tab.
>>>>
>>>>Can anyone teel me WHY in Ubuntu this strange behavior is ocurring? As
>>>>far as I know, /etc/hosts file should be only writable by root and NOT
>>>>by any user. There are other "security" problems like this enabled by
>>>>default in ubuntu that one should be aware of it?
>>>>
>>>>Thanks in advance.
>>>>
>>>>Pablo.
>>>>
>>>>  
>>>>
>>>>        
>>>>
>>>Are you sure you're writing it propely, if you dont edit it as root, it
>>>may not be saving it when you think it is. I've done this plenty of
>>>times (still do sometimes and it confuses me :D)	
>>>
>>>
>>>
>>>
>>>      
>>>
>>That's the funny part....I'm doing it as root and EVERY time I change
>>the location from Network Connection my /etc/hosts file is re writed.....
>>
>>    
>>
>
>
>  
>
-rw-r--r--  1 root root 1216 2005-06-05 17:16 /etc/hosts

Is not weird???

Thanks for the help




More information about the ubuntu-users mailing list