Skip to content

pam_systemd fails to create session for root if pam_systemd_home is used for account #17266

@tomty89

Description

@tomty89

systemd version the issue has been seen with

246.6

Used distribution

Arch Linux ARM (Raspberry Pi 4)

Linux kernel version used (uname -a)

Linux alarmpi 5.4.69-1-ARCH #1 SMP PREEMPT Fri Oct 2 18:33:37 UTC 2020 armv7l GNU/Linux

CPU architecture issue was seen on

armv7l

Expected behaviour you didn't see

root login works fine; session can be created; no stalling or quitting

Unexpected behaviour you saw

  • session creation fails for root with the error of Input/output error
  • login either stalls and "succeed" without a (logind) session created, or fails and quits entirely after stalling
  • login works fine for non-root user
  • such problem is not observed on Arch Linux (x86_64), even though the pam confs are identical (unless I missed something)
  • not yet tested with aarch64 mainline kernel
  • the problem is observed by me on tty login, but I saw recent report with similar error and workaround for ssh login on Arch Linux ARM forum

Steps to reproduce the problem

Note: systemd-home is not enabled/started
https://github.com/archlinux/svntogit-packages/blob/2d5af94ae55a5c98837ce9631f331ad2aad32bb3/trunk/system-login
https://github.com/archlinux/svntogit-packages/blob/2d5af94ae55a5c98837ce9631f331ad2aad32bb3/trunk/system-auth
(commenting the pam_systemd_home:account line seem to avoid the the problem)

Metadata

Metadata

Assignees

No one assigned

    Labels

    homedhomed, homectl, pam_homedlogin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions