Devuan bug report logs - #301
slim logins don't get registered in utmp

Package: slim; Maintainer for slim is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for slim is src:slim.

Reported by: Ralph Ronnquist <ralph.ronnquist@gmail.com>

Date: Thu, 7 Mar 2019 10:03:01 UTC

Severity: normal

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#301: slim logins don't get registered in utmp
Reply-To: Mark Hindley <mark@hindley.org.uk>, 301@bugs.devuan.org
Resent-From: Mark Hindley <mark@hindley.org.uk>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Wed, 17 Apr 2019 10:48:02 UTC
Resent-Message-ID: <handler.301.B301.15554976069615@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 301
X-Devuan-PR-Package: slim
X-Devuan-PR-Keywords: 
Received: via spool by 301-submit@bugs.devuan.org id=B301.15554976069615
          (code B ref 301); Wed, 17 Apr 2019 10:48:02 UTC
Received: (at 301) by bugs.devuan.org; 17 Apr 2019 10:40:06 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Wed, 17 Apr 2019 12:40:06 +0200 (CEST)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 80EFCF60BFA
	for <301@bugs.devuan.org>; Wed, 17 Apr 2019 12:33:11 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=apollo)
	by mx.hindley.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1hGhsL-000267-QH; Wed, 17 Apr 2019 11:33:09 +0100
Received: from mark by apollo with local (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1hGhsK-0000OY-Sh; Wed, 17 Apr 2019 11:33:08 +0100
Date: Wed, 17 Apr 2019 11:33:08 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: 301@bugs.devuan.org
Cc: Ralph Ronnquist <ralph.ronnquist@gmail.com>
Message-ID: <20190417103308.GQ6300@hindley.org.uk>
References: <13b902a1-2c17-4c1b-691a-f8fccf5a6e2d@gmail.com>
 <20190307184006.GX17160@hindley.org.uk>
 <20190308172734.GD17160@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20190308172734.GD17160@hindley.org.uk>
X-Debbugs-No-Ack: No Thanks
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
On Fri, Mar 08, 2019 at 05:27:34PM +0000, Mark Hindley wrote:
> Ralph,
> 
> Could you try adding this configuration to /etc/slim.conf please?
> 
> # sessreg. You can use the %user variable
> sessionstop_cmd exec sessreg -d -l $DISPLAY %user
> sessionstart_cmd exec sessreg -a -l $DISPLAY %user
> 
> It fixes slim utmp/wtmp/lastlog registration for me although the process is
> identified as ?xdm?. Trying to fix that....

Ralph,

Just a follow up on this.

Although it is ugly, I think the ?xdm? in the IDLE column out from w is
technically correct: w is unable to determine the correct idle time for X. You
need xprintidle or the like for that.

Other than that, sessreg correctly registers sessions in utmp and lastlog for
me.

Can you confirm it works for you?

Mark


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Mar 29 13:37:24 2024;