ACL SETUSER
Syntax
ACL SETUSER username [rule [rule ...]]
ACL categories: @admin, @slow, @dangerous
ACL Rules
Dragonfly ACL rules are split into two categories:
- Command Rules that define command permissions.
- User Management Rules that define the user state.
Command Rules
+@<category>: Adds all the commands in the specified category to the list of commands the user is able to execute. For example,+@stringadds all the string commands.-@<category>: Like+@<category>but removes all the commands in the category instead of adding them.
User Management Rules
ON: Set the user as active, it will be possible to authenticate as this user usingAUTH <username> <password>.OFF: Set user as not active, it will be impossible to authenticate as this user.>password: Set or update the password of this user.
Return
Simple string reply: OK on success. If the rules contain errors, the error is returned.
Examples
dragonfly> ACL SETUSER myuser ON >mypass +@string +@fast -@slow
OK