You are not logged in.
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
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
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
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
No, and you generally don't want to login as root from a graphical session in any case.
Offline
I solved this by removing "root" from the /var/lib/AccountsService/users/ directory then restarting the systemd accounts-daemon.service.
Offline