You are not logged in.

#1 2012-06-24 11:48:45

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,341
Website

users of systemd and lxdm or lightdm please read and comment [solved]

I'm trying to confirm that both lxdm and lightdm do not properly establish a systemd session upon login.  Thanks to tomegun in this thread for the detective work.  In short, if you both use systemd and login graphically with EITHER lxdm or lightdm, please post the output of:

$ ck-list-sessions | grep TRUE
$ loginctl

For me, logging in with lxdm or lightdm, the result is:

$ ck-list-sessions | grep TRUE
active = TRUE
	is-local = TRUE

$ loginctl
   SESSION        UID USER             SEAT            

0 sessions listed.

So lxdm or lightdm are not establishing systemd sessions correctly... if I log in with gdm, the results for the `loginctl` are different:

$ loginctl
   SESSION        UID USER             SEAT            
         9       1000 facade          seat0           

1 sessions listed.

Last edited by graysky (2012-06-24 14:59:31)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-06-24 12:49:08

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: users of systemd and lxdm or lightdm please read and comment [solved]

Same for me with lightdm. I set "gdm" as the greeter user, just to be sure. (there are some workarounds in consolekit specifically for a user named "gdm")

	active = TRUE
	is-local = TRUE
----
   SESSION        UID USER             SEAT            

0 sessions listed.

Last edited by progandy (2012-06-24 12:50:46)

Offline

#3 2012-06-24 14:21:01

fjvinal
Member
From: Madrid
Registered: 2012-06-23
Posts: 36

Re: users of systemd and lxdm or lightdm please read and comment [solved]

Me too with lightdm:

$ ck-list-sessions | grep TRUE

        active = TRUE
        is-local = TRUE
$ loginctl
   SESSION        UID USER             SEAT           

0 sessions listed.

Offline

#4 2012-06-24 14:28:33

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,341
Website

Re: users of systemd and lxdm or lightdm please read and comment [solved]

OK.. thanks all.  Not just me.

Bug reports filed:

Lightdm: https://bugs.launchpad.net/lightdm/+bug/1017126
LXDM: https://sourceforge.net/tracker/?func=d … tid=894869

Last edited by graysky (2012-06-24 14:28:51)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2012-06-24 14:57:09

bwat47
Member
Registered: 2009-10-07
Posts: 637

Re: users of systemd and lxdm or lightdm please read and comment [solved]

Yep, same here with lxdm. I just switched to SLIM, and that seems to work fine:

[brandon@brandon-linux ~]$ ck-list-sessions | grep TRUE	active = TRUE
	is-local = TRUE
[brandon@brandon-linux ~]$ loginctl
   SESSION        UID USER             SEAT            
         1       1000 brandon          seat0           

1 sessions listed.
[brandon@brandon-linux ~]$ 

Last edited by bwat47 (2012-06-24 15:12:47)

Offline

#6 2012-06-26 02:33:51

bwat47
Member
Registered: 2009-10-07
Posts: 637

Re: users of systemd and lxdm or lightdm please read and comment [solved]

FYI, adding

session 	required 	pam_systemd.so

to /etc/pam.d/lxdm fixes this for lxdm.

Last edited by bwat47 (2012-06-26 02:34:26)

Offline

#7 2012-06-26 20:46:56

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,341
Website

Re: users of systemd and lxdm or lightdm please read and comment [solved]

bwat47 wrote:

FYI, adding

session 	optional 	pam_systemd.so

to /etc/pam.d/lxdm fixes this for lxdm.

BRILLIANT!  Thank you.  I updated the wiki.

Last edited by graysky (2012-06-27 00:31:30)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2012-06-26 21:32:10

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: users of systemd and lxdm or lightdm please read and comment [solved]

graysky wrote:
bwat47 wrote:

FYI, adding

session 	required 	pam_systemd.so

to /etc/pam.d/lxdm fixes this for lxdm.

BRILLIANT!  Thank you.  I updated the wiki.

I suppose the following line could be added to the default config and shouldn't cause problems if systemd is not installed:

-session  optional  pam_systemd.so

By the way, is there any reason lightdm and lxdm don't include pam.d/login in their PAM configuration?

Offline

#9 2012-06-26 21:39:02

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,341
Website

Re: users of systemd and lxdm or lightdm please read and comment [solved]


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2013-08-10 13:31:35

lesebas
Member
Registered: 2013-07-10
Posts: 15

Re: users of systemd and lxdm or lightdm please read and comment [solved]

Hello, I have a problem when I connect multi-user on xfce session with lxdm. loginctl commande return me only one session (the first connected). Full description of my bug here :

starting xfce session from lxdm properly (systemd-logind support).

I've modify my /etc/pam.d/lxdm from

#%PAM-1.0
auth            requisite       pam_nologin.so
auth            required        pam_env.so
auth            required        pam_unix.so
account         required        pam_unix.so
session         required        pam_limits.so
session         required        pam_unix.so
password        required        pam_unix.so
-session         optional        pam_loginuid.so
-session         optional        pam_systemd.so

to

 #%PAM-1.0
auth            requisite       pam_nologin.so
auth            required        pam_env.so
auth            required        pam_unix.so
account         required        pam_unix.so
session         required        pam_limits.so
session         required        pam_unix.so
password        required        pam_unix.so
session         required        pam_loginuid.so
session         required        pam_systemd.so

But it doesn't work better... any idea?

Offline

#11 2013-08-10 19:50:41

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: users of systemd and lxdm or lightdm please read and comment [solved]

@lesebas
This thread is over a year old and already marked as [SOLVED]. Please repost your problem in a new thread. Please read our forum etiquette as well.

Closing...

Offline

Board footer

Powered by FluxBB