Customizing GDM login screen

Issues related to applications and software problems
Post Reply
jscarville
Posts: 135
Joined: 2014/06/17 21:50:37

Customizing GDM login screen

Post by jscarville » 2018/03/30 18:46:23

A recent acquisition will increase the number of Linux servers here dramatically and most of the system admins now want to learn about Linux. To this end I am trying to set up some CentOS7 desktops in VMWare VDI. To make this work cleanly I want the owner of a particular to see his name only at the login screen.

In CentOS 6 I could edit /etc/gdm/custom.conf to add:

[greeter]
IncludeAll=false
Include=<whomever>

but this does not work in CentOS 7. Is there a way to do it?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Customizing GDM login screen

Post by hunter86_bg » 2018/04/03 04:12:45

Try with /etc/dconf/db/gdm.d/01-custom-gdm-settings
You will need to run:

Code: Select all

 dconf update && systemctl restart gdm

jscarville
Posts: 135
Joined: 2014/06/17 21:50:37

Re: Customizing GDM login screen

Post by jscarville » 2018/04/20 17:22:12

thank you but that did not work. In fact it looks like there is no provision for such a customization in Gnome3

Code: Select all

# gsettings list-keys org.gnome.login-screen

fallback-logo
disable-user-list
allowed-failures
enable-smartcard-authentication
banner-message-enable
enable-password-authentication
disable-restart-buttons
logo
enable-fingerprint-authentication
banner-message-text
Interestingly, the alleged command-line tool called gsettings cannot set a key from the command line.

Code: Select all

# gsettings set org.gnome.login-screen disable-user-list true

(process:18577): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Customizing GDM login screen

Post by TrevorH » 2018/04/20 17:33:04

Create or edit /var/lib/AccountsService/users/theuserinquestion and put this in it

Code: Select all

[User]
SystemAccount=true
The userinquestion will no longer be listed on the login menu screen.

Edited to remove systemctl restart gdm as it takes effect immediately without that.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jscarville
Posts: 135
Joined: 2014/06/17 21:50:37

Re: Customizing GDM login screen

Post by jscarville » 2018/04/20 18:08:31

A follow up to the above. I did figure out how to disable the user list from a command line.

Edit /etc/dconf/db/gdm.d/00-login-screen and add the following lines:

[org/gnome/login-screen]
disable-user-list=true

Update dconf and restart gdm

# dconf update && systemctl restart gdm

Better than nothing I guess.

sirfacu
Posts: 1
Joined: 2018/11/26 21:51:45

Re: Customizing GDM login screen

Post by sirfacu » 2018/11/26 21:59:30

I have the same question I want to change my background from the login screen I try this:

vim /etc/dconf/db/gdm.d/01-logo
[org/gnome/login-screen]
logo='/home/sirfacu/Imágenes/images.jpg'

vim /etc/dconf/db/gdm.d/00-login-screen
[org/gnome/desktop/screensaver]
picture-uri='file:///home/sirfacu/Imágenes/images.jpg'
picture-options='zoom'
disable-user-list=true


[sirfacu@sirfacu ~]$ tree /etc/dconf/db/gdm.d
/etc/dconf/db/gdm.d
├── 00-login-screen
├── 01-logo
└── locks

Then I update the dconf database and restart the service
[sirfacu@sirfacu ~]$ sudo dconf update
[sirfacu@sirfacu ~]$ sudo systemctl restart gdm

But nothing change just logout and back to the same background. (Yes, I restart the laptop too)

Thanks in advance for your help

Post Reply