If you are locked out of your Fedora instance and have lost access to the root account, you need to boot into single-user mode and reset the root password. These steps apply to Fedora versions 29 through 35.
Click the Server Restart icon in the Vultr customer portal.
Open the web console.
You can also reboot the server from inside the web console. See the Web Console FAQ for more information.
Follow the steps below for your version.
ro
to rw init=/sysroot/bin/sh
.chroot /sysroot
.passwd
to change the root password.touch /.autorelabel
to force file system relabeling.exit
.logout
.reboot
to reboot the server.ro
to rw init=/sysroot/bin/sh
.chroot /sysroot
.passwd
and follow the prompts to change the root password.touch /.autorelabel
to force file system relabeling. This is required for systems with SELinux. When you reboot the system, it will relabel the filesystem for SElinux. The reboot may take extra time during this process.exit
.reboot
to reboot the server.