2

I installed rabbitmq on kali linux. I started the service

 sudo systemctl start rabbitmq-server 

Then I tried to enable the management plugin

 rabbitmq-plugins enable rabbitmq_management

But I am getting this error:

 Error when reading ./.erlang.cookie: eacces

Looks like I am not not authorized to read from the cookie. How can I resolve this?

I tried this

sudo chmod 600 ./.erlang.cookie 

and

sudo chmod 600 /var/lib/rabbitmq/.erlang.cookie 

but did not help

1 Answer 1

1

I had to copy the .erlang.cookie file to $HOME directory.

sudo cp /var/lib/rabbitmq/.erlang.cookie $HOME

then i had to give read access to the file

 sudo chmod +r ./.erlang.cookie

finally

sudo rabbitmq-plugins enable rabbitmq_management
1
  • 1
    It should work if you skip the path change and permissions update, so just do sudo rabbitmq-plugins enable rabbitmq_management Commented Dec 16, 2022 at 11:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.