Set rabbitMQ default guest password to something else

rabbitmq

I am looking to change rabbitMQ default guest user password to something then guest and guest……….

Config look like this:

    [ { rabbit, [
    { loopback_users, [ ] },
    { vm_memory_high_watermark, {absolute, 595276595 }},
    { default_user,  'guest' },
    { default_password, 'somepassword' },
    { disk_free_limit, 52428800 }
] } ].

For some reason, the web interface still accessible via guest guest… It does not seem to apply config.

U syspect loopback_users has something to do with it…

Best Answer

When asking questions or reporting issues about RabbitMQ, please always include the version of RabbitMQ and Erlang you are using.

You must use the correct setting name (default_pass) and correct value format:

[
    {rabbit, [
        {loopback_users, []},
        {vm_memory_high_watermark, {absolute, 595276595}},
        {default_user, <<"guest">>},
        {default_pass, <<"somepassword">>},
        {disk_free_limit, 52428800}
    ]}
].

The above are documented here.

Also, if you have started RabbitMQ prior to using this configuration, the guest user will already have been created using guest as the password. The default_user and default_pass settings only apply to fresh nodes.

If you are using RabbitMQ 3.7.X, you should investigate the .conf INI-style configuration format instead, as it is friendlier:

https://github.com/rabbitmq/rabbitmq-server/blob/v3.7.17/docs/rabbitmq.conf.example


NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

Related Topic