Complete the code to add a user with read-only access to all keys.
ACL SETUSER alice on >password ~* +@[1]The +@read command allows read-only access to all keys.
Complete the code to create a user 'bob' with password 'secret' and only permission to set keys.
ACL SETUSER bob on >[1] ~* +[2]
The password is set with >secret. The permission to set keys is +set.
Fix the error in the command to remove all permissions from user 'charlie'.
ACL SETUSER charlie [1]off disables the user but does not reset permissions.delete or remove are invalid commands.The reset keyword removes all permissions and disables the user.
Fill both blanks to allow user 'dave' to only read keys starting with 'app:' and execute the 'get' command.
ACL SETUSER dave on >pass123 ~[1] +[2]
The key pattern app:* restricts access to keys starting with 'app:'. The +get command allows reading keys.
Fill all three blanks to create a user 'eve' with password '1234', access only to keys starting with 'user:', and permission to execute 'set' command.
ACL SETUSER eve on >[1] ~[2] +[3]
The password is 1234. The key pattern user:* restricts keys. The +set command allows setting keys.