Ask Your Question

How to find out root password

asked 2018-06-13 15:12:05 -0500

DJLinux gravatar image

Hi. I enrolled in the course "Bash programming" on Udemy and according to instructions, I installed the lastes Fedora 28 package in VMWare Fusion 10. It works great. Was able to go through many BASH programming exercises. However, some exercises require root. When I enter "su root", it asks for the password. I have no idea what the root password is. During the installation, I was never asked to setup a root my root password nor was the current root password even mentioned. Please let me know what I need to do. Thank you - DJ Mehrpuyan

edit retag flag offensive close merge delete


How did you do install? ... using a Fedora ISO? ... did Udemy provide a VM? I've never installed a fresh Linux system without the installer asking for a root password.

rickhg12hs12 gravatar imagerickhg12hs12 ( 2018-06-13 16:51:23 -0500 )edit

Then you haven't installed F28 yet. It doesn't ask for a root password anymore. You have to define it.

sudo -i passwd

florian gravatar imageflorian ( 2018-06-13 18:22:11 -0500 )edit

During the installation of Fedora, it never asked for a root passwd. I got it to work finally. sudo root password: <my linux="" password="">


changing password for root New password: <entered new="" root="" passwd="">

DJLinux gravatar imageDJLinux ( 2018-06-15 00:45:33 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-06-13 18:13:35 -0500

sideburns gravatar image

Welcome to ask.fedora! This is one of the reasons that I don't like it that the Fedora installer doesn't even ask you to set a root password any more. However, it could be much worse, because you're not locked out of your own account and you should have access to sudo which lets you run one command as root, using your own password, and that's all you need.

sudo passwd

Will ask you for your own password, but change root's, after which you have a root password. BTW, if you just want to change your userid to root's, you just use su; to do a full switch to root, including root's environment, use su - because that defaults to root if no other user is specified.

edit flag offensive delete link more

answered 2018-06-13 18:20:48 -0500

lsatenstein gravatar image

If you set up your logon as administrator, then the problem is trivial to solve

sudo su

Will make you root user

whoami #will confirm you are the root user.

passwd root #if you did sudo su -, you will also be in /root enter new password 1st time enter 2nd time as confirmation

And you have root's password

edit flag offensive delete link more


Either your way or mine will work. It all depends on how many commands you want to use. And, since you accidentally posted two copies of your excellent answer, you might want to delete the second copy.

sideburns gravatar imagesideburns ( 2018-06-13 18:27:41 -0500 )edit

Question Tools

1 follower


Asked: 2018-06-13 15:12:05 -0500

Seen: 3,800 times

Last updated: Jun 13 '18