Creating a Custom Password Policy for DWS
When creating or modifying a user, you need to specify a password. DWS has default password complexity requirements. You can also define database account password policies.
Default DWS Password Policy
By default, DWS verifies the password complexity. The default password policy requires that the password:
- Contain 8 to 32 characters.
- Contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. For details about the supported special characters, see Table 1.
- Cannot be the same as the user name or the user name in reverse order, case insensitive.
- Cannot be the current password or the current password spelled backwards.
Setting and Changing a Password
- Both system administrators and common users need to periodically change their passwords to prevent the accounts from being stolen.
For example, to change the password of the user u1, connect to the database as the administrator and run the following command:
1ALTER USER u1 IDENTIFIED BY 'newpassword' REPLACE 'oldpassword';
- An administrator can change its own password and other accounts' passwords. With the permission for changing other accounts' passwords, the administrator can resolve a login failure when a user forgets its password.
To change the password of the user joe, run the following command:
1ALTER USER joe IDENTIFIED BY 'password';
- System administrators are not allowed to change passwords for each other.
- When a system administrator changes the password of a common user, the original password is not required.
- However, when a system administrator changes its own password, the original password is required.
- Password verification
Password verification is required when you set the user or role in the current session. If the entered password is inconsistent with the stored password of the user, an error is reported.
To set the password of the user joe, run the following command:
1SET ROLE joe PASSWORD 'password';
If the following information is displayed, the role setting has been modified:
SET ROLE
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot