# Resetting KOTS Admin Password

**URL:** https://community.replicated.com/t/resetting-kots-admin-password/375
**Category:** Supporting your customers
**Tags:** kots
**Created:** [November 25, 2019, 2:46pm UTC](https://community.replicated.com/t/resetting-kots-admin-password/375 "2019-11-25T14:46:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AJ-Jester](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/aj-jester/32/94_2.png) [@AJ-Jester](https://community.replicated.com/u/AJ-Jester)
#### Post date: [November 25, 2019, 2:46pm UTC](https://community.replicated.com/t/resetting-kots-admin-password/375/1 "2019-11-25T14:46:54Z")

</div>

If I lose the auto-generated KOTS admin password for the embedded install or forgot what I set it for existing install, how do I go about resetting these?

---

<div class="post-metadata">

### Author: ![AJ-Jester](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/aj-jester/32/94_2.png) [@AJ-Jester](https://community.replicated.com/u/AJ-Jester)
#### Post date: [November 25, 2019, 3:15pm UTC](https://community.replicated.com/t/resetting-kots-admin-password/375/2 "2019-11-25T15:15:20Z")

</div>

The admin password is stored as a bcrypt value so once set it cannot be read back, the only way to recover is to reset it.

`kubectl kots reset-password <namespace>`

---

<div class="post-metadata">

### Author: ![todd](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/todd/32/318_2.png) [@todd](https://community.replicated.com/u/todd)
#### Post date: [December 9, 2020, 5:00pm UTC](https://community.replicated.com/t/resetting-kots-admin-password/375/3 "2020-12-09T17:00:47Z")

</div>

This is also valid syntax to change the password:

`kubectl kots reset-password -n <namespace>`

**NOTE** : for embedded clusters the namespace is `default`
