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

Bug#692539: debian-edu-config: Diskless workstations with XFCE do not register logged in users in utmp



Package: debian-edu-config
Version: 1.453
Severity: important

A customer reported that shutdown-at-night on diskless workstations
running XFCE turn off machines even if there is a user logged in.  The
cause is that the logged in user is not registered in utmp, causing
'who' to not show any logged in users, making shutdown-at-night to
believe the machine is unused.

I am not quite sure why, but one idea might be that /var/lib/kdm is used
to store the current user status, and the fact that this directory isn't
writable causes kdm to not update utmp.  If that is the case, this patch
should solve it.

Index: debian/changelog
===================================================================
--- debian/changelog    (revisjon 78309)
+++ debian/changelog    (arbeidskopi)
@@ -11,6 +11,12 @@
     object. Closes: #687256.
   * Fix smbaddclient.sh, use ,,set +e'' instead of non-bash-syntax ,,unset -e''.
 
+  [ Petter Reinholdtsen ]
+  * Adjust ltsp_config.d/debian-edu-config-rwbind to make /var/lib/kdm
+    writable to allow kdm to record user status, making kdm log logged
+    in users to utmp and thus make sure shutdown-at-night do not try
+    to turn off occupied diskless workstations used after 16:00.
+
  -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de>  Mon, 20 Aug 2012 12:31:31 +0200
 
 debian-edu-config (1.454~svn77318) squeeze-test; urgency=low
Index: share/ltsp/ltsp_config.d/debian-edu-config-rwbind
===================================================================
--- share/ltsp/ltsp_config.d/debian-edu-config-rwbind   (revisjon 78309)
+++ share/ltsp/ltsp_config.d/debian-edu-config-rwbind   (arbeidskopi)
@@ -43,6 +43,11 @@
            rw_dirs="$rw_dirs /var/lib/gdm"
        fi
 
+        # Make sure KDM is able to update user status
+       if [ -d /var/lib/kdm ] ; then
+           rw_dirs="$rw_dirs /var/lib/kdm"
+       fi
+
         # Make sure rwhod can work
        rw_dirs="$rw_dirs /var/spool/rwho"
 

I have not been able to test if this solution work, but mention it here
in case any one have time to test it.

-- 
Happy hacking
Petter Reinholdtsen


Reply to: