[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#504081: debian-edu-config: update-hostname must run before ltsp-client



Package: debian-edu-config
Version: 1.416+svn39964
Severity: important

After switching off avahi-daemon thin clients randomly stopped working
after a reboot.  The login screen never came up.

I traced this down to the xauth cookie in /tmp/tmp[RANDOM] having the
cookie set for ltsp/unix:6 in the non-working clients.  The working
clients had a cookie for [full hostname]/unix:6.

Further investigation showed that S20ltsp-client will use the hostname 
set by hostname.sh to the contents of /etc/hostname, which is ltsp for 
all diskless clients, unless update-hostname has run.  If 
S20ltsp-client manages to set the X cookie before S20update-hostname 
runs, the cookie will contain the wrong hostname.

I recommend solving this by setting the correct hostname earlier.  
Moving update-hostname from S20 to a lower number seems to be the 
simplest solution.  The hostname should be set properly before syslog 
starts as well.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-6-686
Locale: LANG=nn_NO.UTF-8, LC_CTYPE=nn_NO.UTF-8 (charmap=UTF-8)

Versions of packages debian-edu-config depends on:
ii  bind9-host [host]         1:9.3.4-2etch3 Version of 'host' bundled with BIN
ii  cfengine2                 2.1.20-1       Tool for configuring and maintaini
ii  debconf [debconf-2.0]     1.5.11etch2    Debian configuration management sy
ii  desktop-profiles          1.4.13         framework for setting up desktop p
ii  expect                    5.43.0-8       A program that can automate intera
ii  libconfig-inifiles-perl   2.39-2         Read .ini-style configuration file
ii  libfilesys-df-perl        0.92-1         Module to obtain filesystem disk s
ii  libhtml-fromtext-perl     2.05-5         Mark up text as HTML
ii  libio-socket-ssl-perl     1.01-1         Perl module implementing object or
ii  libnet-ldap-perl          1:0.33-2       A Client interface to LDAP servers
ii  libtext-unaccent-perl     1.08-1         provides functions to remove accen
ii  lsb-base                  3.1-23.2etch1  Linux Standard Base 3.1 init scrip
ii  lsof                      4.77.dfsg.1-3  List open files
ii  mime-support              3.39-1         MIME files 'mime.types' & 'mailcap
ii  ng-utils                  0.6-1          Tool to access netgroups from the 
ii  ssl-cert                  1.0.14         Simple debconf wrapper for openssl
ii  svk                       1.08-2         A Distributed Version Control Syst

debian-edu-config recommends no packages.

-- debconf information excluded



Reply to: