# Bin/elasticsearch-setup-passwords: No such file or directory

**URL:** <https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 7, 2020, 7:56am UTC](https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725 "2020-09-07T07:56:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bigranawab](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Bigranawab](https://discuss.elastic.co/u/Bigranawab)\
**Post date:** [September 7, 2020, 7:56am UTC](https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725/1 "2020-09-07T07:56:40Z")

</div>

Hi,

I am using elasticsearch 8.0 and I want to setup passwords for built-in users, so I enabled xpack.security.enabled: true and after restarting elasticsearch service I ran following command: "bin/elasticsearch-setup-passwords interactive" and it gives me below error  
"bin/elasticsearch-setup-passwords: No such file or directory"  
can someone help here, I was able to run this command on my previous deployment but not in here and they both were on same version.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 7, 2020, 9:04pm UTC](https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725/2 "2020-09-07T21:04:38Z")

</div>

Is there a reason you are running 8.0? It's not yet released.

---

<div class="post-metadata">

**Author:** ![Bigranawab](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Bigranawab](https://discuss.elastic.co/u/Bigranawab)\
**Post date:** [September 8, 2020, 3:19pm UTC](https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725/3 "2020-09-08T15:19:41Z")

</div>

oh sorry its 7.8.0

---

<div class="post-metadata">

**Author:** ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Post date:** [September 8, 2020, 5:40pm UTC](https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725/4 "2020-09-08T17:40:59Z")

</div>

Please try with whole path:  
/usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive

---

<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:** [October 6, 2020, 5:41pm UTC](https://discuss.elastic.co/t/bin-elasticsearch-setup-passwords-no-such-file-or-directory/247725/5 "2020-10-06T17:41:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
