Locking and Unlocking a User
The system supports automatic user lock and allows you to lock or unlock users. When the number of failed password attempts exceeds a specified value, the system automatically locks the user. When the lock duration exceeds a specified value, the system automatically unlocks the user.
By default, a user is automatically locked if the number of failed password attempts exceeds 10 (failed_login_attempts). The user is automatically unlocked in one day (password_lock_time). You can also perform the following operations to modify the values and lock or unlock the user:
Configuring User Lock
- Log in as the OS user omm to the primary node of the database.
- Run the following command to start environment variables:
source ${MOTSERVER_HOME}/.motservice_profile
- Connect to the database.
gsql -d postgres -p 20105 -W Database password
- Check the lock parameter values.
- Run the following commands to configure the parameters:
- failed_login_attempts: number of failed password attempts. The default value is 10. The value ranges from 0 to 1000. If this parameter is set to 0, the user lock is disabled.
- password_lock_time: lock duration. By default, a locked user will be unlocked in one day. The integer part of the value indicates the number of days, and the decimal part is converted into hours, minutes, and seconds. For example, password_lock_time=1.5 indicates one day and 12 hours. If this parameter is set to 0, the user lock is disabled.
Only when both parameters are set to positive values, the user lock function works properly. You can set the parameters as required to improve security. You are advised to retain the default values.
Locking and Unlocking a User
- Log in as the OS user omm to the primary node of the database.
- Run the following command to start environment variables:
source ${MOTSERVER_HOME}/.motservice_profile
- Connect to the database.
gsql -d postgres -p 20105 -W Database password
- Lock or unlock a user.
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