Hide a specific user in GDM's user list?

Hi,

Although I’m using KDE from EPEL, I’ve recently replaced SDDM by GDM since SDDM doesn’t play well with NVidia drivers.

So far I have a nice and sober custom configuration for GDM.

One thing that would come in handy: hide a specific account in GDM’s user list. On our school’s laptops for example, I have two accounts: scholae as the “normal user”. And then microlinux as the admin user.

In that case is there a way to hide to microlinux user from the user list in GDM? Of course that user can still log in manually by clicking on “Missing on the list” and then typing in the username and password explicitly.

In older versions of GNOME this was easy to configure in /etc/gdm/custom.conf. But GNOME has always been a moving target, and developers love to pull the rug from under our feet at every new release.

Cheers,

Niki

Chapter 9. Managing users and groups | Red Hat Product Documentation writes:

/var/lib/AccountsService/users/user-name

This file stores information that the system needs about the user before the home directory is available. Depending on the system configuration, the home directory might not be available until the user authenticates at the login screen.

As example, I seem to have:

# cat /var/lib/AccountsService/users/jlehtone 
[com.redhat.AccountsServiceUser.System]
id='almalinux'
version-id='9.5'

[User]
Session=gnome
Icon=/home/jlehtone/.face
SystemAccount=false

For another account I have changed:

SystemAccount=true

and that account does not show up on GDM.

I think I did set that up following something like: GDM - ArchWiki


There apparently is a way to set default template for new users: Chapter 8. Setting a default desktop session for all users | Red Hat Product Documentation

1 Like