[systemd-devel] [udev] Scanner rule not applied during boot

Marcin Kocur marcin2006 at gmail.com
Wed Oct 21 21:42:51 UTC 2020


W dniu 21.10.2020 o 08:52, Lennart Poettering pisze:
> On Di, 20.10.20 23:16, Marcin Kocur (marcin2006 at gmail.com) wrote:
>
>> Lennart,
>>
>> I'm using outdated lxdm with Xfce.
>>
>> I just disabled lxmd, copied fresh /etc/X11/xinit/xinitrc to ~/.xinitrc
>> (adding my environment exec command there) and started my environment from
>> startx: ACLs didn't change.
>>
>>
>> ~/.xinitrc runs:
>> /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
>> #!/bin/sh
>>
>> systemctl --user import-environment DISPLAY XAUTHORITY
>>
>> if command -v dbus-update-activation-environment >/dev/null 2>&1; then
>>      dbus-update-activation-environment DISPLAY XAUTHORITY
>>
>> fi
>>
>>
>> Those variables are:
>> [mk at linux ~]$ echo $DISPLAY
>> :0.0
>> [mk at linux ~]$ echo $XAUTHORITY
>>
>> /home/mk/.Xauthority
>>
>> I also tried out SDDM login manager: ACLs weren't applied.
> Maybe pam_systemd is missing from your PAM stacks? This smells like a
> distro integration thing to me, might make sense to inquire your
> distro maintainers about this.
>
> Consider logging in, and using "loginctl" to check if your session is
> properly recognized and tracked.

Hmm for me it looks perfectly fine:

[mk at linux ~]$ loginctl session-status
1 - mk (1000)
            Since: Wed 2020-10-21 19:53:10 CEST; 3h 30min ago
           Leader: 533 (lxdm-session)
             Seat: seat0; vc1
              TTY: tty1
          Service: lxdm; type x11; class user
            State: active
             Unit: session-1.scope
                   ├─  533 /usr/lib/lxdm/lxdm-session
                   ├─  542 xfce4-session
                   ├─  628 /usr/bin/ssh-agent -s
                   ├─  633 xfwm4
                   ├─  655 xfsettingsd
                   ├─  656 xfce4-panel
                   ├─  668 Thunar --daemon
                   ├─  673 xfdesktop

[mk at linux ~]$ echo $XDG_SESSION_ID
1

[mk at linux ~]$journalctl -xe |grep systemd-logind

[...]

Oct 21 19:53:10 linux systemd-logind[450]: New session 1 of user mk

[mk at linux ~]$ echo $XDG_SESSION_ID
1
[mk at linux ~]$ echo $XDG_SESSION_TYPE
x11
[mk at linux ~]$ echo  $XDG_SESSION_CLASS
user
[mk at linux ~]$ echo  $XDG_SESSION_DESKTOP

[mk at linux ~]$ echo  $XDG_SEAT
seat0
[mk at linux ~]$ echo  $XDG_VTNR
1

[mk at linux ~]$ cat '/etc/pam.d/system-login'
#%PAM-1.0

auth       required   pam_shells.so
auth       requisite  pam_nologin.so
auth       include    system-auth

account    required   pam_access.so
account    required   pam_nologin.so
account    include    system-auth

password   include    system-auth

session    optional   pam_loginuid.so
session    optional   pam_keyinit.so       force revoke
session    include    system-auth
session    optional   pam_motd.so          motd=/etc/motd
session    optional   pam_mail.so          dir=/var/spool/mail standard 
quiet
-session   optional   pam_systemd.so
session    required   pam_env.so           user_readenv=


I can surely report to Arch bugtracker, but I can't find what to report. 
Everything seems to be fine, except it's not working ;) I need something 
to go on...

-- 
Pozdrawiam / Greetings
Marcin Kocur █



More information about the systemd-devel mailing list