Can't remove key in keystone

/usr/share/Elasticsearch/bin/Elasticsearch-keystore remove xpack.security.authc.realms.oidc.oidc1.rp.client_secret

ERROR: will not overwrite keystore at [/etc/Elasticsearch/Elasticsearch.keystore], because this incurs changing the file owner

my es cluster version is 8.1.1, user is root,what's the problem?

It sounds like your keystore (/etc/elasticsearch/elasticsearch.keystore) is owned by an Elasticsearch specific user (probably elasticsearch) and you are running /usr/share/elasticsearch/bin/elasticsearch-keystore as the root user.

You need to run /usr/share/elasticsearch/bin/elasticsearch-keystore as the same user as owns the /etc/elasticsearch/elasticsearch.keystore file.

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