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?