# Move path.data

**URL:** <https://discuss.elastic.co/t/move-path-data/118053>\
**Category:** Elasticsearch\
**Created:** [February 1, 2018, 3:42pm UTC](https://discuss.elastic.co/t/move-path-data/118053 "2018-02-01T15:42:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbeee](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@sbeee](https://discuss.elastic.co/u/sbeee)\
**Post date:** [February 1, 2018, 3:42pm UTC](https://discuss.elastic.co/t/move-path-data/118053/1 "2018-02-01T15:42:05Z")

</div>

hi,

i created a new data dir (/data), stopped elasticsearch, edited elasticsearch.yml (path.data: /data) and started elasticsearch again. user/group rights are the same as /var/lib/elasticsearch.

now when i start elasticsearch i cant connect anymore (as user elastic via kibana, curl -XGET etc.). I got a "failed to authenticate user".

I changed path.data back to default dir. Now elasticsearch works as expected.

Any Idea? Whats going wrong?

---

<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:** [February 1, 2018, 8:36pm UTC](https://discuss.elastic.co/t/move-path-data/118053/2 "2018-02-01T20:36:55Z")

</div>

You need to move the actual data - the directories and files - from the default to the new path.  
That's where Elasticsearch stores the auth details in the native realm.

---

<div class="post-metadata">

**Author:** ![sbeee](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@sbeee](https://discuss.elastic.co/u/sbeee)\
**Post date:** [February 2, 2018, 8:12am UTC](https://discuss.elastic.co/t/move-path-data/118053/3 "2018-02-02T08:12:59Z")

</div>

Thank you! Works as expected. 👌

---

<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:** [March 2, 2018, 8:13am UTC](https://discuss.elastic.co/t/move-path-data/118053/4 "2018-03-02T08:13:03Z")

</div>

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