How to Create or Enable Root (Admin) user on Red Hat or Fedora 30/31 and more

Fedora is a community driven version of Red Hat Enterprise Linux in my opinion and as powerful as Red Hat if you enable certain functionalities and can deal with bi annual upgrades as a new release is set out every 6 months or so.

By default, Root privileges are disabled for security reasons as this is prone to attacks online if such a user is not well knowledgeable when it comes to Linux.

These are simple steps to enable Root access on Fedora Linux 30/31 and hopefully further releases henceforth:

  1. Go to your Fedora OS.
  2. Open the Command terminal. 
  3. Type the below command to change the default root password and set the new one.
    • sudo passwd root
  4. Once you enter the above command it will ask you to enter the new password for Fedora’s root user.
  5. In case the default Terminal doesn’t work, then search for Qterminal and use that.
How to set Root Password on Fedora 30/31

You can even emulate your the current user to use as root using the below command

sudo su

or

sudo -i

In this way, you can set a root password for your newly installed Fedora OS.

3 thoughts on “How to Create or Enable Root (Admin) user on Red Hat or Fedora 30/31 and more”

Leave a Reply

Your email address will not be published. Required fields are marked *