# Reset Your Forgotten Password

**URL:** <https://universal-blue.discourse.group/t/reset-your-forgotten-password/161>\
**Category:** General\
**Tags:** tutorial\
**Created:** [November 29, 2023, 12:56am UTC](https://universal-blue.discourse.group/t/reset-your-forgotten-password/161 "2023-11-29T00:56:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicknamenamenick](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/nicknamenamenick/32/4512_2.png) [@nicknamenamenick](https://universal-blue.discourse.group/u/nicknamenamenick)\
**Post date:** [November 29, 2023, 12:56am UTC](https://universal-blue.discourse.group/t/reset-your-forgotten-password/161/1 "2023-11-29T00:56:52Z")

</div>

> 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.

 ![Edit the command for the latest boot entry](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/1X/1984d0c172b65665dde86139da3797ca94bec265.png)

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

 ![Boot with init=/bin/bash](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/1X/2b7eef41a2befec4b504e34661eb79d487ef70af.jpeg)

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

 ![Reboot](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/1X/08dd0db20a6536bfe84dd1d47e597fe76c28665f.jpeg)

Continue boot process with Ctrl+X

Once you are in the GRUB command line:

1. Temporarily mount SELinux

```auto
mount -t selinuxfs selinuxfs /sys/fs/selinux

```

1. Load SELinux policy

```auto
/sbin/load_policy

```

1. Enter your new password (i.e. passwd nick)

```auto
passwd [INSERT USERNAME HERE] 

```

1. Sync

```command
sync

```

1. Reboot

```auto
/sbin/reboot -ff

```

 ![Commands](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/1X/d9a4e5720181d8d14e5542e7bfec97a48cce5544.png)

Your user password should now be reset.

Thanks to [Colin Walters](https://github.com/cgwalters) for the [solution](https://github.com/ublue-os/main/issues/469#issuecomment-1885264886).

* * *

**Documentation Contributors** : [Noel Miller](https://github.com/noelmiller)

**[← View Universal Blue General Documentation](https://universal-blue.discourse.group/docs?topic=3318)**

---

<div class="post-metadata">

**Author:** ![TheRamenDutchman](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@TheRamenDutchman](https://universal-blue.discourse.group/u/TheRamenDutchman)\
**Post date:** [July 24, 2024, 9:46am UTC](https://universal-blue.discourse.group/t/reset-your-forgotten-password/161/6 "2024-07-24T09:46:52Z")

</div>

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?
