Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create or add a user to rabbitmq?

Tags:

rabbitmq

This seems like a question that should be easily be googleable. It is not though. Can anybody help?

How do I create a new user for rabbitmq?

like image 690
Tobias Gassmann Avatar asked Nov 05 '16 08:11

Tobias Gassmann


People also ask

What is the default username and password for RabbitMQ?

Note: The default administrator username and password are guest and guest. In the RabbitMQ Management page: On the navigation toolbar at the top, click Admin.

How do I add connections to RabbitMQ?

In order for a client to interact with RabbitMQ it must first open a connection. This process involves a number of steps: Application configures the client library it uses to use a certain connection endpoint (e.g. hostname and port) The library resolves the hostname to one or more IP addresses.

How do I list users on RabbitMQ?

The internal RabbitMQ users can be managed from the command-line using the rabbitmqctl command. Note, that the users from any alternative authentication backends (e.g. LDAP) cannot be inspected or managed with the commands listed below.


1 Answers

I have found this very useful

This adds a new user and password

rabbitmqctl add_user username password 

This makes the user a administrator

rabbitmqctl set_user_tags username administrator 

This sets permissions for the user

rabbitmqctl set_permissions -p / username ".*" ".*" ".*" 

See more here https://www.rabbitmq.com/rabbitmqctl.8.html#User_Management

like image 131
John Kitonyo Avatar answered Oct 13 '22 23:10

John Kitonyo