# Reset Rancher Pass

**URL:** <https://forums.suse.com/t/reset-rancher-pass/42651>\
**Category:** SUSE Virtualization\
**Created:** [February 29, 2024, 3:42am UTC](https://forums.suse.com/t/reset-rancher-pass/42651 "2024-02-29T03:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timjwhite](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@timjwhite](https://forums.suse.com/u/timjwhite)\
**Post date:** [February 29, 2024, 3:42am UTC](https://forums.suse.com/t/reset-rancher-pass/42651/1 "2024-02-29T03:42:13Z")

</div>

On a testing instance here I have misplaced the rancher password for the harvester install.

I can get to the admin page, and I can get to the same from our rancher cluster. I have physical access to the system.

Can I boot off the install iso as a recovery or something similar?

Thanks,  
Tim

---

<div class="post-metadata">

**Author:** ![tserong](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tserong/32/11011_2.png) [@tserong](https://forums.suse.com/u/tserong)\
**Post date:** [March 5, 2024, 3:55am UTC](https://forums.suse.com/t/reset-rancher-pass/42651/2 "2024-03-05T03:55:36Z")

</div>

The password for the rancher user is set in `/oem/90_custom.yaml`. There’s instructions for changing the password in the documentation at [Update Harvester Configuration After Installation | Harvester](https://docs.harvesterhci.io/v1.2/install/update-harvester-configuration/#password-of-user-rancher), but of course this only helps if you can log in in the first place 🙂

Please try this:

- Boot the installer ISO
- When it’s up, hit CTRL-ALT-F2 and login to the installer’s shell as “rancher”, with password “rancher”.
- Become root (`sudo -u`)
- Find the OEM partition (try `blkid /dev/sda[...]` - you’re looking for the one with the “COS\_OEM” label), then mount it, e.g. `mount /dev/sda2 /mnt`
- Edit `/mnt/90_custom.yaml` and change the `passwd: ...` line to the new encrypted password you’d like to use. To generate that encrypted password in the first place, run `openssl passwd -6`.
- Reboot back into Harvester and you should have the new password set.

Hope that helps.

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![timjwhite](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@timjwhite](https://forums.suse.com/u/timjwhite)\
**Post date:** [March 24, 2024, 10:38pm UTC](https://forums.suse.com/t/reset-rancher-pass/42651/3 "2024-03-24T22:38:19Z")

</div>

Good morning Tim,

I’d just like to confirm that all worked for me, so thank you very much for that (and please excuse the late reply! )

Cheers,  
Tim
