sudo problem/question

Tom H tomh0665 at gmail.com
Mon Apr 12 18:55:59 UTC 2010


On Mon, Apr 12, 2010 at 2:11 PM, Carl Friis-Hansen
<ubuntuuser at carl-fh.com> wrote:
> 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

That's the default Debian/Ubuntu way and it works perfectly well. The
OP's box has somehow gotten confused; and I prefer to use the more
"traditional" setup.




More information about the ubuntu-users mailing list