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,260 points
4,877 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,460 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,460 points
1,051 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,460 points
1,302 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,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,460 points
20,265 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
7,702 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP