Debian Bug report logs - #485795
ldm: Logged in users do not show up on 'who'

version graph

Package: ldm; Maintainer for ldm is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>; Source for ldm is src:ldm (PTS, buildd, popcon).

Reported by: Petter Reinholdtsen <pere@hungry.com>

Date: Wed, 11 Jun 2008 14:21:04 UTC

Severity: important

Tags: patch

Fixed in versions ldm/2:2.0.6-1, 2:2.0.6-1

Done: Vagrant Cascadian <vagrant@freegeek.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#485795; Package ltsp-client. (full text, mbox, link).


Acknowledgement sent to Petter Reinholdtsen <pere@hungry.com>:
New Bug report received and forwarded. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Petter Reinholdtsen <pere@hungry.com>
To: submit@bugs.debian.org
Subject: ldm: Logged in users do not show up on 'who'
Date: Wed, 11 Jun 2008 16:17:16 +0200
Package:  ltsp-client
Version:  0.99debian11
Severity: important
Tags:     patch
User:     debian-edu@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@symbio-technologies.com> (Symbio Technologies)


Happy hacking,
-- 
Petter Reinholdtsen




Bug reassigned from package `ltsp-client' to `ldm'. Request was from Vagrant Cascadian <vagrant@freegeek.org> to control@bugs.debian.org. (Wed, 11 Jun 2008 19:42:14 GMT) (full text, mbox, link).


Information stored:
Bug#485795; Package ldm. (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@freegeek.org>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #12 received at 485795-quiet@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@freegeek.org>
To: 485795-quiet@bugs.debian.org
Subject: Re: Bug#485795: ldm: Logged in users do not show up on 'who'
Date: Wed, 11 Jun 2008 11:57:17 -0700
reassign 485795 ldm
thanks




Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#485795; Package ldm. (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@freegeek.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #17 received at 485795@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@freegeek.org>
To: Petter Reinholdtsen <pere@hungry.com>, 485795@bugs.debian.org
Subject: Re: Bug#485795: ldm: Logged in users do not show up on 'who'
Date: Mon, 16 Jun 2008 22:49:55 -0700
fixed 485795 2:2.0.6-1
thanks

On Wed, Jun 11, 2008 at 04:17:16PM +0200, Petter Reinholdtsen wrote:
> 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.
...snip... 
> Looking at ldm version 2:2.0.6-1, I see that this is already done for
> the C version of ldm.

indeed, i can confirm it works fine in lenny and sid.

> 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.

i wouldn't object to an upload for etch(presuming it was well tested, of
course), but don't have time to work on it myself.
 
> 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@symbio-technologies.com> (Symbio Technologies)

looks pretty reasonable to me.

live well,
  vagrant




Bug marked as fixed in version 2:2.0.6-1. Request was from Vagrant Cascadian <vagrant@freegeek.org> to control@bugs.debian.org. (Tue, 17 Jun 2008 05:51:07 GMT) (full text, mbox, link).


Reply sent to Vagrant Cascadian <vagrant@freegeek.org>:
You have taken responsibility. (Sun, 08 Feb 2009 22:30:05 GMT) (full text, mbox, link).


Notification sent to Petter Reinholdtsen <pere@hungry.com>:
Bug acknowledged by developer. (Sun, 08 Feb 2009 22:30:05 GMT) (full text, mbox, link).


Message #24 received at 485795-done@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@freegeek.org>
To: 485795-done@bugs.debian.org
Subject: re: #485795 ldm: Logged in users do not show up on 'who'
Date: Sun, 8 Feb 2009 14:27:04 -0800
Version: 2:2.0.6-1

since this is fixed in lenny, due to be release real soon, i think i'll
finally close those bug as an uploaded fix for etch isn't likely at this
point.

live well,
  vagrant




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 09 Mar 2009 07:31:13 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:31:22 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.