ACL

Since 1.1.0ACLChanged in 1.2.1

Syntax

ACL
  • ACL categories: @slow
  • Arity: -2

History

  • 1.2.1: flags: removed admin; acl categories: removed admin, dangerous, server

Manages users and what each may do: which commands it may run, which keys it may read or write, which channels it may use. The default user always exists; new connections are logged in as it. See its subcommands, and AUTH.

Subcommands

  • ACL CAT: Returns the command categories, or the commands of one category.
  • ACL DELUSER: Deletes one or more users.
  • ACL DRYRUN: Tells whether a user could run a command, without running it.
  • ACL GENPASS: Returns a random password, as hexadecimal digits, from the system's secure random source.
  • ACL GETUSER: Returns a user's rules: its flags, the SHA-256 hashes of its passwords, its command rules, its key and channel patterns, and its selectors.
  • ACL HELP: Lists the ACL subcommands, each with its arguments and a line on what it does, as the server knows them.
  • ACL LIST: Returns every user as a line of the ACL file format: user <name> <on|off> <passwords> <key patterns> <channel patterns> <command rules>.
  • ACL LOAD: Reads the ACL file again and makes its users the server's users, replacing all of those in memory.
  • ACL LOG: Returns recent security events, newest first: failed logins, and commands, keys or channels refused for lack of permission.
  • ACL SAVE: Writes every user in memory, with its rules and passwords, to the ACL file, so that they are there after a restart.
  • ACL SETUSER: Creates the user username, or changes it, by applying rules from left to right.
  • ACL USERS: Returns the names of every user the server has, default included, sorted by name.
  • ACL WHOAMI: Returns the name of the user the connection is logged in as.