Ask Your Question

fedora 28:how to set up root password

asked 2018-04-09 09:42:40 -0500

shashitiwary gravatar image

I installed fedora 28 Beta on base ubuntu machine with virtual machine manager.Duribg the installation process it did not asked for root setting password.I came to know that in fedora 28 i can do root with sudo with the same user password ,but how can i set a different root password.Also how can i ssh from base(ubuntu) to fedora(virtuall) machine with root.I have already set up my sshd_config file with PermitRootLogin Yes.

edit retag flag offensive close merge delete

6 Answers

Sort by ยป oldest newest most voted

answered 2018-04-09 12:38:20 -0500

florian gravatar image

updated 2018-05-02 08:24:34 -0500

sudo -i

Now you are in a root console. There you can run


to change root's password.

Btw, I guess you can still setup a root password during install

edit flag offensive delete link more


thank's that is what i want

Saad Alassadi gravatar imageSaad Alassadi ( 2018-04-10 10:07:08 -0500 )edit

Thanks, I had the same issue... I should have used my brain to solve it :)

Albyv gravatar imageAlbyv ( 2018-05-03 13:32:47 -0500 )edit

No, actually. No option to setup a user or a root password until after install on f28.

Willtech gravatar imageWilltech ( 2018-09-22 05:45:47 -0500 )edit

answered 2018-05-01 11:10:41 -0500

TheBigDuck gravatar image

The new Fedora 28 doesn't ask you to set a root password.

But your answer is the CAT'S PAJAMAS! as it works like a champ.

edit flag offensive delete link more

answered 2018-05-24 00:00:03 -0500

jowilson gravatar image

sudo passwd works too.

Fedora 28 does NOT ask you to set the root password. It is in fact, not set. When you set up your initial account you get sudo rights. This allows you to create a password for root if you really want/need it.

edit flag offensive delete link more

answered 2018-04-09 14:27:46 -0500

sideburns gravatar image

When you install Fedora, anaconda asks you to set the root password. Until recently, I didn't know that it allowed you to continue without setting it. To answer your second question, yes, you can log in as root with that setting, but it's a major security hole if the virtual machine has access to the Internet.

edit flag offensive delete link more


Apparently, that's not the case anymore since Fedora 28. After first login, gnome-initial-setupshould pop up and let you create a user.

florian gravatar imageflorian ( 2018-05-02 08:22:48 -0500 )edit

answered 2018-05-01 21:57:37 -0500

Sageb1 gravatar image

This is better than Ubuntu where sudo complains you're not in the sudoers list.

edit flag offensive delete link more

answered 2019-02-08 14:57:11 -0500

How do you set the root password once Fedora is installed?

edit flag offensive delete link more


You are re-asking the same question. See florian's answer, above.

tim8723 gravatar imagetim8723 ( 2019-02-09 07:52:29 -0500 )edit

Question Tools



Asked: 2018-04-09 09:42:40 -0500

Seen: 46,960 times

Last updated: Feb 08 '19