You are not logged in.

#1 2023-07-15 12:49:35

fch07
Member
From: Planet Earth
Registered: 2021-09-22
Posts: 63

[SOLVED]How to remove an user from gnome login page?

I login with my main user and root user, but I want to remove root user from login page of gnome. Searched online and only found things for Debian based, where the config files are different.

Last edited by fch07 (2023-07-18 06:32:46)

Offline

#2 2023-07-15 12:53:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED]How to remove an user from gnome login page?

https://wiki.archlinux.org/title/GDM#Hi … login_list
But according to that, root is hidden by default unless you followed the steps in the subsection just before that - in which case, undo those steps.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-07-15 16:46:55

fch07
Member
From: Planet Earth
Registered: 2021-09-22
Posts: 63

Re: [SOLVED]How to remove an user from gnome login page?

Trilby wrote:

https://wiki.archlinux.org/title/GDM#Hi … login_list
But according to that, root is hidden by default unless you followed the steps in the subsection just before that - in which case, undo those steps.

I typed the passwd wrong three times and because of that I added root, but from the GUI of gdm. I try editing here /var/lib/AccountsService/users/username but nothing changed.
In this file: /etc/pam.d/gdm-password, I have a very different config than the one described above that page:

#%PAM-1.0

auth       include                     system-local-login
auth       optional                    pam_gnome_keyring.so

account    include                     system-local-login

password   include                     system-local-login
password   optional                    pam_gnome_keyring.so use_authtok

session    include                     system-local-login
session    optional                    pam_gnome_keyring.so auto_start

Does GDM have some config file, which I can delete in order for it to generate a new default one?

Last edited by fch07 (2023-07-16 06:24:22)

Offline

#4 2023-07-16 21:53:29

fch07
Member
From: Planet Earth
Registered: 2021-09-22
Posts: 63

Re: [SOLVED]How to remove an user from gnome login page?

I try this :  https://wiki.archlinux.org/title/Sudo#D … root_login
it solved the problem, I don't have root as user login option at gdm anymore, but will I have bad consequences without having the possibility of root login?
sudo su still works after that.

Last edited by fch07 (2023-07-17 06:39:34)

Offline

#5 2023-07-17 23:18:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,884

Re: [SOLVED]How to remove an user from gnome login page?

No, and you generally don't want to login as root from a graphical session in any case.

Offline

#6 2024-08-05 18:00:14

Mr.Wizard
Member
Registered: 2024-08-05
Posts: 1

Re: [SOLVED]How to remove an user from gnome login page?

I solved this by removing "root" from the /var/lib/AccountsService/users/ directory then restarting the systemd accounts-daemon.service.

Offline

Board footer

Powered by FluxBB