ACL DRYRUN

Syntax

  1. ACL DRYRUN username command

ACL categories: @admin, @slow, @dangerous

This command simulates the execution of a given command by a user. It can be used to test the permissions without having to enable the user or cause the side effects of running the actual commands.

Return

Simple string reply: OK on success or the reason the user can’t execute the command.

Examples

  1. dragonfly> ACL SETUSER mike >mypass +GET -SET
  2. ACL DRYRUN mike GET
  3. "OK"
  4. dragonfly> ACL DRYRUN mike SET
  5. (error) ERR User: mike is not allowed to execute command: SET