Introduction
In CentOS 8, by default, the GUI login page only shows users with non-root accounts. However, there might be situations where you want to add the root user to the list of users that appear during the GUI login. In this article, we will discuss the steps to make the root user appear on the GUI login page in CentOS 8.
Prerequisites
Before we proceed, make sure:
- You have a CentOS 8 system installed and configured.
- You have root access to the system.
Procedure
Follow the steps below to add the root user to the GUI login page:
Step 1: Edit the SSSD configuration file
The first step is to edit the System Security Services Daemon (SSSD) configuration file to allow the root user to appear in the GUI login page.
sudo vi /etc/sss/sssd.conf
Add the following lines at the end of the file:
[sssd]
services = nss, pam
[nss]
filter_users = root
[pam]
Step 2: Restart the SSSD service
After editing the configuration file, restart the SSSD service to apply the changes:
sudo systemctl restart sssd
Verification
Now, log out of your current session and check the GUI login page. The root user should appear in the list of users.
Summary
In this article, we learned how to make the root user appear on the GUI login page in CentOS 8. We edited the SSSD configuration file and restarted the SSSD service to enable the root user to appear in the list of users during the GUI login.