Confirmed that with /etc/rabbit owned by rabbitmq:rabbitmq, rabbitmq-plugins is able to enable/disable plugins when run as user rabbitmq:
# chsh rabbitmq /bin/bash
# chown -R rabbitmq:rabbitmq /etc/rabbitmq/
# su rabbitmq
rabbitmq@review-eoan:/var/log$ rabbitmq-plugins enable --all
The following plugins have been configured:
rabbitmq_amqp1_0
rabbitmq_auth_backend_cache
..
rabbitmq@review-eoan:/var/log$ rabbitmq-plugins disable --all
All plugins have been disabled.
Applying plugin configuration to rabbit@review-eoan...
The following plugins have been disabled:
rabbitmq_recent_history_exchange
rabbitmq_management_agent
..
Confirmed that with /etc/rabbit owned by rabbitmq:rabbitmq, rabbitmq-plugins is able to enable/disable plugins when run as user rabbitmq:
# chsh rabbitmq /bin/bash review- eoan:/var/ log$ rabbitmq-plugins enable --all auth_backend_ cache review- eoan:/var/ log$ rabbitmq-plugins disable --all review- eoan... recent_ history_ exchange management_ agent
# chown -R rabbitmq:rabbitmq /etc/rabbitmq/
# su rabbitmq
rabbitmq@
The following plugins have been configured:
rabbitmq_amqp1_0
rabbitmq_
..
rabbitmq@
All plugins have been disabled.
Applying plugin configuration to rabbit@
The following plugins have been disabled:
rabbitmq_
rabbitmq_
..