Reset Your Forgotten Password

This method is only if you forgot your current user password! Changing your current password should be done through the desktop environment.

Follow this guide at your own discretion because you can break your system attempting any of this.

Reboot your device and edit the last deployment by presssing E on your keyboard.

Boot with init=/bin/bash on the kernel command line (e.g. edit GRUB prompt.)

Continue boot process with Ctrl+X

Once you are in the GRUB command line:

  1. Temporarily mount SELinux
mount -t selinuxfs selinuxfs /sys/fs/selinux
  1. Load SELinux policy
/sbin/load_policy
  1. Enter your new password (i.e. passwd nick)
passwd [INSERT USERNAME HERE] 
  1. Sync
sync
  1. Reboot
/sbin/reboot -ff

Your user password should now be reset.

Thanks to Colin Walters for the solution.


Documentation Contributors: Noel Miller

← View Universal Blue General Documentation

4 Likes

I can’t get this to work, when I mounted SELinux I received no output (I’m guessing this is good? Is it?)

But the file /sbin/load_policy and the command passwd seem to be missing.

What could cause this? How do I fix this?