[How To] Enable Root Login on Fedora
|In this tutorial, we will show you how to enable root login on Fedora Linux and discuss the security implications of doing so. We will also provide tips and tricks for the best way to use root login on Fedora.
To enable root login on Fedora Linux, you will need to perform the following steps:
- Open Terminal from Applications -> System Tools, or by pressing the CTRL + ALT + T keys.
- Use sudo command to switch to the root user.
sudo su -
- Create a backup of the GDM configuration file /etc/pam.d/gdm.
sudo cp /etc/pam.d/gdm /etc/pam.d/gdm.bak
- Edit /etc/pam.d/gdm configuration file with your favorite editor.
vim /etc/pam.d/gdm
- Find and disable following line (insert # before it).
# auth required pam_succeed_if.so user != root quiet
- Do the same with configuration files in /etc/pam.d/ starting with “pam_”.
- Save and close all configuration files.
- Reboot your Fedora Linux. Now you can log in with root.
sudo reboot
It is important to note that it is not recommended to enable root login on Fedora or any other system, as it can be a security risk. Instead, it is recommended to use a non-root user and use the sudo command to perform actions that require root privileges. This will help ensure that the system remains secure.
Conclusion
Enabling root login on Fedora can be useful in certain situations, but it is not recommended due to security risks. It is best to use a non-root user and use the sudo command to perform tasks that require root privileges. Following the instructions in this tutorial will help you get root access to Fedora Linux.
Related
sudo passwd root
it will ask for current user with high-test privilege’s.
put the password in
and then system will prompt enter the root passwd twice and root is unlocked..