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

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



On Wed, Nov 07, 2012 at 11:06:03AM +0100, Petter Reinholdtsen wrote:
> 
> 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.

IMO the reason is something else. By default sessreg seems to be 
disabled in kdmrc. So all Debian Edu Squeeze machines using kdm seem to 
be affected.

Changing /etc/kde4/kdm/kdmrc (ditto in chroot) makes it work.

--- kdmrc.orig	2012-11-07 16:16:15.000000000 +0100
+++ kdmrc	2012-11-07 16:16:28.000000000 +0100
@@ -302,7 +302,7 @@
 #ClientLogFallback=/var/log/xsession-errors/%u-%d%-r
 # Whether KDM's built-in utmp/wtmp/lastlog registration should be used.
 # Default is false
-#UseSessReg=true
+UseSessReg=true
 
 # Greeter config for all displays
 [X-*-Greeter]

Wolfgang

Attachment: signature.asc
Description: Digital signature


Reply to: