Managing Users
You can create read-only and read/write users to control access permissions.
Prerequisites
ACL is a whitelist feature and is disabled by default. Contact the administrator to enable it.
This function is supported by DCS Redis 4.0/5.0 instances.
Procedure
- Log in to the management console, and choose Application > Distributed Cache Service in the service list.
- Click in the upper left corner of the management console and select the region where your instance is located.
- In the navigation pane, choose Cache Manager.
- Click an instance.
- Choose User Management in the navigation pane.
The user whose username is default is the instance's default user. The default user has read and write permissions and their password is the instance's password.
- Click Create User.
- A maximum of 18 users can be created for an instance.
- If Password Protected is enabled for a DCS Redis instance, only the default user can be used.
- To use a normal user, click Reset Password in the row that contains the default user to disable Password Protected for the default user.
- Specify the Username and Description. Select Read-only or Read/Write. Specify the Password and confirm it.
- Click OK.
A normal ACL user connects to an instance with password {username:password}.
- When using redis-cli to connect to an instance, the default user runs the following command:
./redis-cli -h {dcs_instance_address} -p 6379 -a {password}
- A normal ACL user runs the following command:
./redis-cli -h {dcs_instance_address} -p 6379 -a {username:password}
- When using redis-cli to connect to an instance, the default user runs the following command:
More Operations
The following operations can be performed on normal users.
Operation |
Description |
---|---|
Changing a password |
Locate the row that contains the desired normal user and click Change Password in the Operation column. |
Reset a password |
If password is forgot, locate the row that contains the normal user and click Reset Password in the Operation column. |
Modify permissions |
Locate the row that contains the normal user. Choose More > Modify Permission in the Operation column. The Read-only or Read/Write permissions can be granted. |
Edit description |
Locate the row that contains the normal user. Choose More > Edit Description in the Operation column. |
Delete a user |
Locate the row that contains the normal user. Choose More > Delete in the Operation column. |
Batch deleting users |
Select the normal users to be deleted and click Delete above the list. The default user cannot be deleted. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.