On a #Fedora 43, I have no idea _where_ the "gdm-greeter" user comes from. Not in /etc/passwd, /usr/lib/sysusers.d/
An strace of `getent passwd gdm-greeter` seems to show some magic here:
connect(4, {sa_family=AF_UNIX, sun_path="/run/systemd/userdb/org.gnome.DisplayManager"}, 47) = 0
Not entire sure how this all works exactly.
Probably has some custom NSS module?
https://www.man7.org/linux/man-pages/man5/nsswitch.conf.5.html
- replies
- 1
- announces
- 0
- likes
- 0
@wouter I think it's related to https://systemd.io/USERDB_AND_DESKTOPS/
I saw a @pid_eins talk on this about a year? ago.
Still can't find the "gdm-greeter" string in /usr/ so I'm assuming this logic is compiled in to something somewhere, and the API pulls it out.
@purpleidea gdm registers users dynamically so that the greeter sessions can run isolated, each under their own dynamic uid, because you can have multiple these days. This is implemented via systemd's userdb framework whose client tool is userdbctl, which allows you to inspect/enumerate users and such.
@pid_eins What's the right way to automate making a workstation never suspend?
/etc/systemd/logind.conf.d/10-no-suspend.conf
[Login]
IdleAction=ignore
IdleActionSec=0
seems like half of it, but also you need to do:
gsettings `set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing`
for each user, including every GDM user.
Knowing there could be many makes this problematic.