sudo problem/question

Carl Friis-Hansen ubuntuuser at carl-fh.com
Mon Apr 12 18:11:05 UTC 2010


Tom H wrote:
> On Mon, Apr 12, 2010 at 1:35 PM, Luis Paulo <luis.barbas at gmail.com> wrote:
>   
>> Na. I was expecting red.Workgroup
>>
>> Well, other file that matters on this subject is
>> /etc/resolv.conf
>>
>> See if they differs, if you wish.
>>     
>
> I don't think so.
>
> The only files that matter are
> /etc/hostname
> and
> /etc/hosts
>
> As I said in an earlier email, red must be behaving differently
> because red.Workgroup is an alias of localhost and has an address of
> 127.0.0.1.
>
> I have never understood the Debian/Ubuntu setup where hosts is
> 127.0.0.1 localhost
> 127.0.1.1 hostname
> and I usually change mine to
> 127.0.0.1 hostname [hostname.domain] localhost
>
>   
I have always had luck doing it the very simple way:
carl at cjfh3:~$ cat /etc/hostname
cjfh3
carl at cjfh3:~$ cat /etc/hosts
127.0.0.1    localhost
127.0.1.1    cjfh3

Regards
Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100412/071b6e9e/attachment.html>


More information about the ubuntu-users mailing list