Bug#473827: /usr/bin/network-admin: network-admin miswrites etc/hosts hostname and alias

Ulrik Sverdrup ulrik.sverdrup at gmail.com
Tue Apr 1 21:07:35 UTC 2008


Package: gnome-system-tools
Version: 2.20.0-1
Severity: important
File: /usr/bin/network-admin


By some coincidence and then mishap, network-admin miswrote my
/etc/hosts file. 

In domain name AND in search domains I had the entry "lan" which I did
not specify myself; this probably came from my router in a DHCP
configuration. However, with that there and my hostname given as
'ulrik-ibook', network-admin consistently wrote my hosts file as:

127.0.0.1 localhost ulrik-ibook.lan
127.0.1.1 ulrik-ibook.lan ulrik-ibook.lan

# IPv6 part skipped

Note that my hostname does not appear above.

This had grave implications:

1. No error when connected to the router or the net: the hostname
'ulrik-ibook' would resolve normally (but I suspect causing slowness in
application startup).
2. Without network connection, the hostname would not resolve, causing
the gravest error: sudo is unable to run if the hostname does not
resolve! I had to solve this one in single user mode since there is no
way to resolve it without the root user!


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.22-3-powerpc
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-system-tools depends on:
ii  gconf2                 2.20.1-3          GNOME configuration database syste
ii  gksu                   2.0.0-5           graphical frontend to su
ii  libatk1.0-0            1.20.0-1          The ATK accessibility toolkit
ii  libc6                  2.7-6             GNU C Library: Shared libraries
ii  libcairo2              1.4.14-1          The Cairo 2D vector graphics libra
ii  libdbus-1-3            1.1.2-1           simple interprocess messaging syst
ii  libfontconfig1         2.5.0-2           generic font configuration library
ii  libfreetype6           2.3.5-1           FreeType 2 font engine, shared lib
ii  libgconf2-4            2.20.1-3          GNOME configuration database syste
ii  libglade2-0            1:2.6.2-1         library to load .glade files at ru
ii  libglib2.0-0           2.14.6-1          The GLib library of C routines
ii  libgnomevfs2-0         1:2.20.1-1        GNOME Virtual File System (runtime
ii  libgtk2.0-0            2.12.5-2          The GTK+ graphical user interface 
ii  libiw29                29-1              Wireless tools - library
ii  libnautilus-extension1 2.20.0-3          libraries for nautilus components 
ii  liboobs-1-3            2.20.0-1          GObject based interface to system-
ii  liborbit2              1:2.14.10-0.1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0          1.18.4-1          Layout and rendering of internatio
ii  libpng12-0             1.2.15~beta5-3    PNG library - runtime
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxml2                2.6.31.dfsg-2     GNOME XML library
ii  libxrender1            1:0.9.4-1         X Rendering Extension client libra
ii  perl                   5.8.8-12          Larry Wall's Practical Extraction 
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

Versions of packages gnome-system-tools recommends:
ii  gnome-control-center          1:2.20.3-2 utilities to configure the GNOME d

-- no debconf information






More information about the pkg-gnome-maintainers mailing list