# Elasticsearch 7.7.1 RPM fresh install keystore permission issues

**URL:** https://discuss.elastic.co/t/elasticsearch-7-7-1-rpm-fresh-install-keystore-permission-issues/236434
**Category:** Elasticsearch
**Created:** [June 10, 2020, 4:14am UTC](https://discuss.elastic.co/t/elasticsearch-7-7-1-rpm-fresh-install-keystore-permission-issues/236434 "2020-06-10T04:14:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![undelete](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/undelete/32/24186_2.png) [@undelete](https://discuss.elastic.co/u/undelete)
#### Post date: [June 10, 2020, 4:14am UTC](https://discuss.elastic.co/t/elasticsearch-7-7-1-rpm-fresh-install-keystore-permission-issues/236434/1 "2020-06-10T04:14:18Z")

</div>

Hi, I have a fresh install of Elasticsearch. Whenever I try to add or change password of the keystore I get this error: ERROR: unable to create temporary keystore at [/etc/elasticsearch/elasticsearch.keystore.tmp], write permissions required for [/etc/elasticsearch] or run [elasticsearch-keystore upgrade]

I've installed Elasticsearch with RPM on RHEL 7.8, so this should be working, right?  
The permissions on the /etc/elasticsearch folder is too low after RPM installation:  
drwxr-s---. 3 root elasticsearch

I've now made 3+ fresh installs which all have this issue.  
I am running these commands as user elasticsearch:  
/usr/share/elasticsearch/bin/elasticsearch-keystore passwd  
/usr/share/elasticsearch/bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure\_password

Is there a way to stop elasticsearch from making the temp-keystore?

---

<div class="post-metadata">

### Author: ![undelete](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/undelete/32/24186_2.png) [@undelete](https://discuss.elastic.co/u/undelete)
#### Post date: [June 10, 2020, 8:25am UTC](https://discuss.elastic.co/t/elasticsearch-7-7-1-rpm-fresh-install-keystore-permission-issues/236434/2 "2020-06-10T08:25:55Z")

</div>

I have tested the command "elasticsearch-keystore upgrade" which is suggested in the error message, but it had no effect.

---

<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: [July 8, 2020, 8:25am UTC](https://discuss.elastic.co/t/elasticsearch-7-7-1-rpm-fresh-install-keystore-permission-issues/236434/3 "2020-07-08T08:25:58Z")

</div>

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