FS#59322 - [lightdm] "Dynamic User" visible in user list

Attached to Project: Arch Linux
Opened by A. Bosch (progandy) - Friday, 13 July 2018, 08:55 GMT
Last edited by Maxime Gauduin (Alucryd) - Tuesday, 06 September 2022, 14:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
If accountsservice is not installed, then LightDM does not hide users created by systemd with DynamicUser=yes in the login screen.

Solution:
Add /sbin/nologin to hidden-shells in /etc/lightdm/users.conf, systemd uses that for dynamic users.


Additional info:
* package version(s)
systemd 239.0-2
lightdm 1:1.26.0-1
accountsservice *not* installed

https://bbs.archlinux.org/viewtopic.php?id=238704


Steps to reproduce:
run a systemd service with DynamicUser=yes and switch to the login screen.
(The service must not contain a User= directive that points to an existing user in /etc/passwd)

systemd-run --pty --property=DynamicUser=yes /bin/sh

getent passwd
...
run-u16702:*:64024:64024:Dynamic User:/:/sbin/nologin
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Tuesday, 06 September 2022, 14:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  1:1.32.0-4
Comment by Doug Newgard (Scimmia) - Tuesday, 17 July 2018, 02:56 GMT
Seems to be covered by optional deps, but we'll see what the maintainer wants to do.

Loading...