LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Root U ser Password for Fedora 37 (https://www.linuxquestions.org/questions/fedora-35/root-u-ser-password-for-fedora-37-a-4175724393/)

williambrown615 04-23-2023 03:10 PM

Root U ser Password for Fedora 37
 
I just installed Fedora 37. It has no option to create a Root User password. I want to install the GCC Compiler and it needs the Root User password for installation. I give my User password but that doesn't work. How can I set a Root password?

michaelk 04-23-2023 03:50 PM

If you did not enable root at installation then you would use sudo with your user's password i.e.

sudo dnf groupinstall "Development Tools"

John VV 04-24-2023 09:50 AM

it dose look like fedora dropped the root user and "su -" for " sudo" and the user account

Overlay1874 05-02-2023 04:12 PM

Quote:

Originally Posted by John VV (Post 6426705)
it dose look like fedora dropped the root user and "su -" for " sudo" and the user account

Which is a good change, in my honest opinion. If someone needs direct root access, they should be elevating from a user context. sudo for terminal applications. For graphical applications: pkexec, kdesu, gksu.

Here be Dragons :tisk:
  • You can still assume the root user's account. It is still there, you just need an elevated account to access it. You can do the following:
    Code:

    sudo su -
  • Now if you absolutely want to enable root login, you can always run:
    Code:

    sudo passwd root


All times are GMT -5. The time now is 03:50 AM.