It is generally not recommended to enable GUI root login on Fedora or any other Linux distribution, as it can pose a security risk. However, if you still wish to enable it, you can follow these steps:
- Open a terminal window and switch to the root user using the
su
command and entering the root password when prompted. - Edit the GDM (GNOME Display Manager) configuration file by running the following command:
nano /etc/gdm/custom.conf
- Locate the
[security]
section of the file and uncomment the following line:AllowRoot=true
- Save the file and exit the text editor.
- Restart the GDM service by running the following command:
systemctl restart gdm.service
After these steps, you should be able to log in as root through the GUI. However, please be aware that this can be a security risk and it is generally recommended to avoid logging in as root and instead use the sudo
command to perform administrative tasks.