mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 23:55:45 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/rabbitmqctl-users
Normal file
37
tldr/rabbitmqctl-users
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rabbitmqctl-users
|
||||
|
||||
> Manage RabbitMQ users, their permissions, and tags.
|
||||
> More information: <https://www.rabbitmq.com/management.html>.
|
||||
|
||||
- List all users:
|
||||
|
||||
`rabbitmqctl list_users`
|
||||
|
||||
- Add a new user with a password:
|
||||
|
||||
`rabbitmqctl add_user {{username}} {{password}}`
|
||||
|
||||
- Delete an existing user:
|
||||
|
||||
`rabbitmqctl delete_user {{username}}`
|
||||
|
||||
- Change the password for a user:
|
||||
|
||||
`rabbitmqctl change_password {{username}} {{new_password}}`
|
||||
|
||||
- Set permissions for a user on a specific virtual host:
|
||||
|
||||
`rabbitmqctl set_permissions {{[-p|--vhost]}} {{vhost}} {{username}} {{read}} {{write}} {{configure}}`
|
||||
|
||||
- Clear all permissions for a user on a specific virtual host:
|
||||
|
||||
`rabbitmqctl clear_permissions {{[-p|--vhost]}} {{vhost}} {{username}}`
|
||||
|
||||
- Assign one or more tags (e.g., administrator) to a user:
|
||||
|
||||
`rabbitmqctl set_user_tags {{username}} {{tag1}} [{{tag2}}]`
|
||||
Reference in New Issue
Block a user