Devuan bug report logs - #302
elogind: doesn't seem to be updating lastlog

Package: elogind; Reported by: "Dimitris T." <dimitris@stinpriza.org>; Done: Mark Hindley <mark@hindley.org.uk>; Maintainer for elogind is (unknown).


Message received at 302-done@bugs.devuan.org:


Received: (at 302-done) by bugs.devuan.org; 17 Apr 2019 10:30:05 +0000
Date: Wed, 17 Apr 2019 11:27:08 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: Dimitris <dimitris@stinpriza.org>
Subject: Re: elogind: doesn't seem to be updating lastlog

On Fri, Mar 08, 2019 at 10:32:02PM +0200, Dimitris wrote:
> On 3/8/19 5:53 PM, Mark Hindley wrote:
> > I have also been struggling to work out where the user login on :0 (above) comes
> > from. With the default install could only reproduce logins on ptys. I eventually
> > managed to do it by adding pam_lastlog.so to the display manager PAM stack in
> > /etc/pam.d/{slim,lightdm}
> > 
> > Had you customised that and it was overwritten in the upgrade at the end of January?
> > 
> 
> no i haven't customised anything in pam.d. not in this install at least.
> not sure either about this login on :0, you're right, it shouldn't be
> there. lastlog should only report tty logins. puzzled about that entry
> too now.
> not having around logs from that time is not helpful, i know..
> 
> anyway, not really sure if this is a bug here. during that period
> (dec-jan) i was testing different scenarios & various DEs, something
> could have triggered that..
> so, feel free to proceed (close?) as you like...

Dimitris,

I don't think there is an elogind bug here. I think it is down the the display
manager (slim, lightdm etc) to register logins in lastlog and utmp.

AFAIK lightdm does this already and I have a patch for slim to implement it (see
#301)

So closing, as you suggest.

Thanks

Mark


Notification sent to "Dimitris T." <dimitris@stinpriza.org>:
bug acknowledged by developer. Full text available.


Reply sent to Mark Hindley <mark@hindley.org.uk>:
You have taken responsibility. Full text available.


Message received at 302@bugs.devuan.org:


Received: (at 302) by bugs.devuan.org; 8 Mar 2019 20:40:06 +0000
To: Mark Hindley <mark@hindley.org.uk>
From: Dimitris <dimitris@stinpriza.org>
Subject: Re: elogind: doesn't seem to be updating lastlog
Date: Fri, 8 Mar 2019 22:32:02 +0200

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--fuIQrzgsds6NhgwMdxoVe3uzkwtBiTA79
Content-Type: multipart/mixed; boundary="Ig1TpswPew3PKlgoRg2mWGWMEkmACQsV5";
 protected-headers="v1"
From: Dimitris <dimitris@stinpriza.org>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 302@bugs.devuan.org
Message-ID: <240dddf0-c45e-a5f8-0524-95ba29996234@stinpriza.org>
Subject: Re: elogind: doesn't seem to be updating lastlog
References: <155197499736.23377.13231103228601464271.reportbug@emma.lan>
 <20190308155308.GC17160@hindley.org.uk>
In-Reply-To: <20190308155308.GC17160@hindley.org.uk>

--Ig1TpswPew3PKlgoRg2mWGWMEkmACQsV5
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 3/8/19 5:53 PM, Mark Hindley wrote:
> I have also been struggling to work out where the user login on :0 (abo=
ve) comes
> from. With the default install could only reproduce logins on ptys. I e=
ventually
> managed to do it by adding pam_lastlog.so to the display manager PAM st=
ack in
> /etc/pam.d/{slim,lightdm}
>=20
> Had you customised that and it was overwritten in the upgrade at the en=
d of January?
>=20

no i haven't customised anything in pam.d. not in this install at least.
not sure either about this login on :0, you're right, it shouldn't be
there. lastlog should only report tty logins. puzzled about that entry
too now.
not having around logs from that time is not helpful, i know..

anyway, not really sure if this is a bug here. during that period
(dec-jan) i was testing different scenarios & various DEs, something
could have triggered that..
so, feel free to proceed (close?) as you like...

thanks,
d.



--Ig1TpswPew3PKlgoRg2mWGWMEkmACQsV5--

--fuIQrzgsds6NhgwMdxoVe3uzkwtBiTA79
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEddlu1gom7sXWP9ZRvUcY7+WkADkFAlyC0UIACgkQvUcY7+Wk
ADlq6Av/bE/Rlmr1QkphACNZeJleCAi16Dwb7G6e/lZNTrtVJ4WlIHJxAPhpPdTM
OJUOow9xxd8jPASUISV1r9dnqIkWEkqz6nkKO3S1bJC0I3xe2hAh1dGTbuql5LF0
WhbbNV+9qNc8oexaUFWTSYuLk00nZISUeEpBp9tl+NI6al6ZkHuCejhuO75TQMq2
R/AAPB/zTtjjp4Gju0vwvFYtRAy90N2/hVD2ollHVXkdHTGr+OSLxZxdwMkXWyQh
KtpUwRKf4ds+TQUAdeACMTi8EmMD3Z+fBRq3NJZlz5/9G1oKYowaLfgLlBnBU3ac
pdakYqMJu+X5y4iyg7ldv1aCkbRmtpm2+VSWsjoymF/TsO0GsJdbCxY1UynUM2An
Kj/uFn3D6pRyp1oBTWSbLd2p6xn7UFuMSgfCqLnW/TjMB3/gxANfR6Wy/z/vT0gJ
JY6LEA7aLkAyRMAp5NCaCwTxyIxjqV1pyS+VpjFvkhdsxBWJDDHyD7QPVM1rLTvA
QQMbEn2J
=SXyM
-----END PGP SIGNATURE-----

--fuIQrzgsds6NhgwMdxoVe3uzkwtBiTA79--


Acknowledgement sent to Dimitris <dimitris@stinpriza.org>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.


Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#302; Package elogind. Full text available.


Message received at 302@bugs.devuan.org:


Received: (at 302) by bugs.devuan.org; 8 Mar 2019 16:00:02 +0000
Date: Fri, 8 Mar 2019 15:53:08 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: 302@bugs.devuan.org
Subject: Re: elogind: doesn't seem to be updating lastlog

On Thu, Mar 07, 2019 at 06:09:57PM +0200, Dimitris T. wrote:
> Package: elogind
> Version: 239.3+20190131-1
> Severity: normal
> 
> since 30/1 lastlog doesn't seem to be updated for display manager logins. tty logins are reported correctly as seen below :  
> 
> # lastlog  
> Username         Port     From             Latest
> root             tty1                      Thu Mar  7 10:49:55 
> user               :0                        Wed Jan 30 15:36:23 

Dimitris,

I have been looking into this. AFAICS display manager logins have never been
logged in lastlog by any of slim, lightdm, consolekit2 or elogind. So, I am not
sure there is a regression here.

I have also been struggling to work out where the user login on :0 (above) comes
from. With the default install could only reproduce logins on ptys. I eventually
managed to do it by adding pam_lastlog.so to the display manager PAM stack in
/etc/pam.d/{slim,lightdm}

Had you customised that and it was overwritten in the upgrade at the end of January?

Mark


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.


Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#302; Package elogind. Full text available.


Message received at 302@bugs.devuan.org:


Received: (at 302) by bugs.devuan.org; 8 Mar 2019 08:30:04 +0000
To: Mark Hindley <mark@hindley.org.uk>
From: Dimitris <dimitris@stinpriza.org>
Subject: Re: elogind: doesn't seem to be updating lastlog
Date: Fri, 8 Mar 2019 10:28:05 +0200

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--NJfGoeshCcAsySu4jLrYju2DMgXeJ29yX
Content-Type: multipart/mixed; boundary="Oxz4LLR8cKcT8xOEQZ4XVPPdjv55btn2Z";
 protected-headers="v1"
From: Dimitris <dimitris@stinpriza.org>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 302@bugs.devuan.org
Message-ID: <86549bf7-f999-c7cb-919b-f0745e65721c@stinpriza.org>
Subject: Re: elogind: doesn't seem to be updating lastlog
References: <155197499736.23377.13231103228601464271.reportbug@emma.lan>
 <20190307180518.GW17160@hindley.org.uk>
 <05e3bb0a-a62c-75a0-3fef-b24fc63eca85@stinpriza.org>
 <20190308071354.GY17160@hindley.org.uk>
In-Reply-To: <20190308071354.GY17160@hindley.org.uk>

--Oxz4LLR8cKcT8xOEQZ4XVPPdjv55btn2Z
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 3/8/19 9:13 AM, Mark Hindley wrote:
>=20
> By default they get gzipped, I think. But maybe you have changed that ;=
)

yes i do, never keep more than a month old files.
also checked external backup, no luck there either. :(

>=20

> Yes, I think it may be the lightdm to slim switch.
>=20

i've used lightdm since 30/1 and slim for the past days. didn't seem to
make a difference...
something else: installed yesterday consolekit & libpam-ck-connector.
parts of MATE DE were removed with this change, so it was just for testin=
g.
result : no updates in lastlog with consolekit either...
switched back to elogind after testing, as libpam-elogind is a
dependency for DE packages i need.


thanks,
d.



--Oxz4LLR8cKcT8xOEQZ4XVPPdjv55btn2Z--

--NJfGoeshCcAsySu4jLrYju2DMgXeJ29yX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEddlu1gom7sXWP9ZRvUcY7+WkADkFAlyCJ5UACgkQvUcY7+Wk
ADlqNQv7B8vej0fEAIvryC1oadImFqd27xcbMXORSvcLUPlLE2OZ6A37rFim5sSF
MCXayKt8xcJlvCnhLPRWJt7Ajb6C6qu9RXbLpnrotAubeeXL6tRN1sq+Wl560XYr
3SQ15XzUcQ1isesiTQEMQY5EWOWa6iFsRhl4eH97cW0WgV1ydAm7PXLuYwm3+2/3
oO6LAUMFanwuNmerKVrXfztaJkYBbgqC5PCjvjPeoVDoYgOZwqiSyNkf2pnbPU23
xKX2jBUYfEveHDg97y5Nrl7wLfm3TWtOZulAoAScwyxpdWBhs53DRKI4pWGE8GqD
2rDLAUH1LUc6ife6ofzdIh5aJ3FXmemzglF0H/OT2KNBLUsGH1z/qwwnQ2icqnY1
RAtR6oGHzpFM8ejDtVB31aMDjSMMfSTR95d0oam2XY4rGl52RpFcWrq0xoxCxNxj
KVZ7WTTP9o6yQIawW95JdE+hTKRC90Qe9EYPijYxGvppN1YlgST1+wSYy5mlheE1
xl6SF3B7
=ooWT
-----END PGP SIGNATURE-----

--NJfGoeshCcAsySu4jLrYju2DMgXeJ29yX--


Acknowledgement sent to Dimitris <dimitris@stinpriza.org>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.


Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#302; Package elogind. Full text available.


Message received at 302@bugs.devuan.org:


Received: (at 302) by bugs.devuan.org; 8 Mar 2019 07:20:05 +0000
Date: Fri, 8 Mar 2019 07:13:54 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: Dimitris <dimitris@stinpriza.org>
Subject: Re: elogind: doesn't seem to be updating lastlog

On Thu, Mar 07, 2019 at 08:21:50PM +0200, Dimitris wrote:
> On 3/7/19 8:05 PM, Mark Hindley wrote:
> > Any chance you could have a look in /var/log/apt/history.log* and post the
> > packages and versions that were updated on 31/1?
> > 
> 
> unfortunately no, logs are rotated each month & deleted.

By default they get gzipped, I think. But maybe you have changed that ;)

> i might be able to find it on some old external backup, but that
> requires some extra time. will do and keep you posted.
> i do remember apart from policykit, that i switched to lightdm and
> elogind that day also, see here :

Yes, I think it may be the lightdm to slim switch.

I will check.

Thanks

Mark


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.


Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#302; Package elogind. Full text available.


Message received at 302@bugs.devuan.org:


Received: (at 302) by bugs.devuan.org; 7 Mar 2019 18:10:03 +0000
Date: Thu, 7 Mar 2019 18:05:18 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: 302@bugs.devuan.org
Subject: Re: elogind: doesn't seem to be updating lastlog

On Thu, Mar 07, 2019 at 06:09:57PM +0200, Dimitris T. wrote:
> Package: elogind
> Version: 239.3+20190131-1
> Severity: normal
> 
> since 30/1 lastlog doesn't seem to be updated for display manager logins. tty logins are reported correctly as seen below :  
> 
> # lastlog  
> Username         Port     From             Latest
> root             tty1                      Thu Mar  7 10:49:55 
> user               :0                        Wed Jan 30 15:36:23 
> 
> 
> 31/1 was the policykit update ( https://lists.dyne.org/lurker/message/20190131.103118.c6fc512b.en.html ), maybe related to that(?).

Any chance you could have a look in /var/log/apt/history.log* and post the
packages and versions that were updated on 31/1?

What display manager are you using?

Thanks

Mark


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.


Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#302; Package elogind. Full text available.


Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 7 Mar 2019 16:10:02 +0000
From: "Dimitris T." <dimitris@stinpriza.org>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: elogind: doesn't seem to be updating lastlog
Date: Thu, 07 Mar 2019 18:09:57 +0200

Package: elogind
Version: 239.3+20190131-1
Severity: normal

since 30/1 lastlog doesn't seem to be updated for display manager logins. tty logins are reported correctly as seen below :  

# lastlog  
Username         Port     From             Latest
root             tty1                      Thu Mar  7 10:49:55 
user               :0                        Wed Jan 30 15:36:23 


31/1 was the policykit update ( https://lists.dyne.org/lurker/message/20190131.103118.c6fc512b.en.html ), maybe related to that(?).

thanks,
d


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux beowulf/ceres
Release:	10
Codename:	n/a
Architecture: x86_64

Kernel: Linux 4.19.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages elogind depends on:
ii  dbus         1.12.12-1
ii  debconf      1.5.71
ii  libacl1      2.2.53-4
ii  libc6        2.28-8
ii  libelogind0  239.3+20190131-1
ii  libselinux1  2.8-1+b1
pn  libudev1     <none>
ii  lsb-base     10.2018112800

Versions of packages elogind recommends:
ii  policykit-1  0.105-25+devuan1

elogind suggests no packages.

-- no debconf information


Acknowledgement sent to "Dimitris T." <dimitris@stinpriza.org>:
New bug report received and forwarded. Copy sent to owner@bugs.devuan.org. Full text available.


Report forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#302; Package elogind. Full text available.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Tue, 20 Aug 2019 22:39:01 UTC