# New password or recover password

**URL:** https://discuss.elastic.co/t/new-password-or-recover-password/262510
**Category:** Elastic Search
**Created:** [January 28, 2021, 2:11pm UTC](https://discuss.elastic.co/t/new-password-or-recover-password/262510 "2021-01-28T14:11:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gustavo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo/32/79962_2.png) [@Gustavo](https://discuss.elastic.co/u/Gustavo)
#### Post date: [January 28, 2021, 2:11pm UTC](https://discuss.elastic.co/t/new-password-or-recover-password/262510/1 "2021-01-28T14:11:02Z")

</div>

How to set a new default password for enterprise search access; because the password I had generated is no longer working.  
I tried the command  
ENT\_SEARCH\_DEFAULT\_PASSWORD = 5eqbxcqczhxx1mgw bin/enterprise-search  
and I was not successful  
login default: enterprise\_search

vs: Elastic Enterprise Search Version 7.10.1  
Elastic: 7.10.2  
Ubuntu 20.04  
Local server: localhost

Thanks

---

<div class="post-metadata">

### Author: ![david.harsha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david.harsha/32/48003_2.png) [@david.harsha](https://discuss.elastic.co/u/david.harsha)
#### Post date: [January 28, 2021, 8:25pm UTC](https://discuss.elastic.co/t/new-password-or-recover-password/262510/2 "2021-01-28T20:25:55Z")

</div>

I think you're looking for `bin/enterprise-search --reset-auth`. Using `ENT_SEARCH_DEFAULT_PASSWORD` with that should work as well.

```auto
% bin/enterprise-search --help

Supported options:
  --app-server - [Default command] Starts the application server
  --enable-read-only-mode - Switches the deployment into a read-only mode
  --disable-read-only-mode - Turns the read-only mode off for the deployment
  --reset-install-lock - Removes a stale installation lock (use with caution)
  --diagnostic-report - Generates a compressed, diagnostic log output for troubleshooting purposes
  --migration-cleanup - Deletes unused indexes
  --reset-auth - For standard authentication source:
                               * Resets login and password
                             For elasticsearch-native and elasticsearch-saml authentication sources:
                               * Removes the current role mappings
                               * All users will be granted the admin role
  --version - Shows product and platform version information
  --help - Useful information on how to run this script

```

---

<div class="post-metadata">

### Author: ![Sean\_Story](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_story/32/69987_2.png) [@Sean\_Story](https://discuss.elastic.co/u/Sean_Story)
#### Post date: [January 28, 2021, 8:26pm UTC](https://discuss.elastic.co/t/new-password-or-recover-password/262510/3 "2021-01-28T20:26:19Z")

</div>

Hi @Gustavo!

> [@Gustavo](#):
>
> I tried the command  
> ENT\_SEARCH\_DEFAULT\_PASSWORD = 5eqbxcqczhxx1mgw bin/enterprise-search

Careful, bash cares about whitespace. The correct command would be:

```auto
ENT_SEARCH_DEFAULT_PASSWORD=5eqbxcqczhxx1mgw bin/enterprise-search

```

with no spaces around the `=`.

> [@Gustavo](#):
>
> How to set a new default password for enterprise search access; because the password I had generated is no longer working.

No problem. The documentation for resetting the password is here: [Run Enterprise Search server using downloads (packages) | Enterprise Search documentation [8.11] | Elastic](https://www.elastic.co/guide/en/enterprise-search/current/installation.html#installation-password-reset)

You'll just want to do:

```auto
ENT_SEARCH_DEFAULT_PASSWORD=5eqbxcqczhxx1mgw bin/enterprise-search --reset-auth

```

Let us know if you have any other issues!

---

<div class="post-metadata">

### Author: ![Gustavo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo/32/79962_2.png) [@Gustavo](https://discuss.elastic.co/u/Gustavo)
#### Post date: [January 29, 2021, 12:59pm UTC](https://discuss.elastic.co/t/new-password-or-recover-password/262510/4 "2021-01-29T12:59:58Z")

</div>

Thanks Sean\_Story and david.harsha

Reset-auth command worked perfectly ...

Thanks...

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 4, 2022, 8:22am UTC](https://discuss.elastic.co/t/new-password-or-recover-password/262510/5 "2022-11-04T08:22:46Z")

</div>


