bash cd root elasticsearch Permission denied

0 votes

Hi Guys,

I am trying to run a command using elasticsearch user. But it is showing me the below error.

[elasticsearch@localhost /]$ cd root/elasticsearch/
bash: cd: root/elasticsearch/: Permission denied

How can I solve this issue?

Jun 19, 2020 in ELK Stack by akhtar
• 38,170 points
1,338 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to set permission for elasticsearch user. You can use the below-given command to do so.

$ chmod o+x /root/ /root/elasticsearch/
$ chgrp elasticsearch /root/elasticsearch/
$ su - elasticsearch

Now your elasticsearch user will have the access to see the data of /root/elasticsearch folder.

answered Jun 19, 2020 by MD
• 95,160 points

Related Questions In ELK Stack

0 votes
1 answer

How to install Elasticsearch tool in Linux System ?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,160 points
174 views
0 votes
1 answer

How to integrate Logstash with ElasticSearch?

Hi@akhtar, You can use elasticsearch plugin to integrate ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,160 points
184 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,064 views
+2 votes
1 answer
0 votes
1 answer

java.lang.RuntimeException: can not run elasticsearch as root

Hi@akhtar, ElasticSearch will not require root privilege to ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,160 points
3,238 views
0 votes
2 answers

How to run Elasticsearch as root user in Linux machine?

Step 1: Pull images of elastic search ...READ MORE

answered Jun 19, 2020 in ELK Stack by Pawan
• 380 points
2,055 views