# Changing paths (log & data) to home

**URL:** <https://discuss.elastic.co/t/changing-paths-log-data-to-home/66685>\
**Category:** Elasticsearch\
**Created:** [November 21, 2016, 8:22am UTC](https://discuss.elastic.co/t/changing-paths-log-data-to-home/66685 "2016-11-21T08:22:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Houss](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Houss](https://discuss.elastic.co/u/Houss)\
**Post date:** [November 21, 2016, 8:22am UTC](https://discuss.elastic.co/t/changing-paths-log-data-to-home/66685/1 "2016-11-21T08:22:26Z")

</div>

Hello,

It seems that I can't change the paths of the logs and data in the yml file to /home/thing path. When I do, elasticsearch will fail its start.

```
path.data: /home/elastic/data/elasticsearch
path.logs: /home/elastic/log/elasticsearch

```

I'm running ES on centos7, rpm install.  
Any insights on this ?  
Thanks.

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [November 21, 2016, 8:23am UTC](https://discuss.elastic.co/t/changing-paths-log-data-to-home/66685/2 "2016-11-21T08:23:37Z")

</div>

What does die failure on startup say?

---

<div class="post-metadata">

**Author:** ![Houss](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Houss](https://discuss.elastic.co/u/Houss)\
**Post date:** [November 21, 2016, 8:28am UTC](https://discuss.elastic.co/t/changing-paths-log-data-to-home/66685/3 "2016-11-21T08:28:05Z")

</div>

Sorry I found the problem just after posting the thread --' (have been searching for a long time)

It was a permission problem, needed to full chmod the path.

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:** [December 19, 2016, 8:28am UTC](https://discuss.elastic.co/t/changing-paths-log-data-to-home/66685/4 "2016-12-19T08:28:09Z")

</div>

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