Running rabbitmqctl as non-root/rabbit user

2,309 views
Skip to first unread message

Remy 'Sieben' Leone

unread,
Nov 21, 2016, 12:35:22 PM11/21/16
to RabbitMQ users
Hello,

I'm using rabbitmq 3.6.6 on a ubuntu 16.04 installation.
Is there a way to run rabbitmqctl as a non-root user? For instance, using a group or something similar?

I've tried to add a user to the rabbitmq group, log out and in again and I still get:

Only root or rabbitmq should run rabbitmqctl

What are the authorization that are granted to users that belong to the rabbitmq UNIX group? 

Best regards

Rémy

Michael Klishin

unread,
Nov 21, 2016, 1:45:28 PM11/21/16
to rabbitm...@googlegroups.com
It needs to read the Erlang cookie file from $HOME of effective RabbitMQ user and open a client socket to connect to epmd on the target node. Not much else. It is an administrative tool so Debian and RPM packages require sudo privileges but other installation methods do not.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Nov 21, 2016, 2:14:40 PM11/21/16
to rabbitm...@googlegroups.com
Also, some commands may need to access node database files directly (if the --offline flag is used). Again, does not require root privilegies per se but may require effective user switching).

On 21 Nov 2016, at 20:35, Remy 'Sieben' Leone <remy....@gmail.com> wrote:

--
Reply all
Reply to author
Forward
0 new messages