[Pkg-ltsp-devel] Bug#485795: ldm: Logged in users do not show up on 'who'

Petter Reinholdtsen pere at hungry.com
Wed Jun 11 14:17:16 UTC 2008


Package:  ltsp-client
Version:  0.99debian11
Severity: important
Tags:     patch
User:     debian-edu at lists.debian.org
UserTags: debian-edu

When a user log in using the ldm version in Etch, the /var/run/utmp
file isn't updated and the user fail to show up as logged in.  This
affect systems that check for logged in users, like the killer
package.

I found a solution, which is to add -t to the ssh argument list.  See
<URL:http://lists.debian.org/debian-edu/2008/06/msg00022.html> for
background information.

Looking at ldm version 2:2.0.6-1, I see that this is already done for
the C version of ldm.  Please do this for ldm in Etch too, as it
confuses syadmins and make it harder to know if a machine is unused or
not.

Here is a patch to solve it.

--- /tmp/ldm	2008-06-11 16:01:39.042442801 +0200
+++ /opt/ltsp/i386/usr/sbin/ldm		      2008-06-11 15:56:53.000000000 +0200
@@ -155,7 +155,7 @@
             os.environ['LDM_ASKPASS_FD'] = str(pipe_read)
             os.environ['SSH_ASKPASS'] = '/usr/lib/ltsp/ldm-askpass'
 
-            ssh_opts = ['-v',
+            ssh_opts = ['-v', '-t',
                        '-c', 'blowfish-cbc,aes128-cbc,3des-cbc']
 
 # Edited by Gideon Romm <gideon at symbio-technologies.com> (Symbio Technologies)


Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-ltsp-devel mailing list