• MapReduce Service

mrs
  1. Help Center
  2. MapReduce Service
  3. User Guide
  4. MRS Manager Operation Guide
  5. Security Management
  6. Changing the Password for User admin

Changing the Password for User admin

Scenario

Periodically change the password for user admin to improve the system O&M security.

Prerequisites

The client has been updated on the active management node.

Procedure

  1. Log in to the active management node.
  2. Run the following command to switch the user:

    sudo su - omm

  3. Run the following command to go to the client directory:

    cd /opt/client

  4. Run the following command to configure environment variables:

    source bigdata_env

  5. Run the following command to change the password for user admin. This operation takes effect in the entire cluster.

    kpasswd admin

    Enter the old password and then enter a new password twice.

    For the MRS 1.6.0 or later cluster, the password complexity requirements are as follows:
    • The password must contain 8 to 32 characters.
    • The password must contain at least three types of the following: lowercase letters, uppercase letters, digits, spaces, and special characters which can only be ~`!?,.:;-_'(){}[]/<>@#$%^&*+|\=
    • The password cannot be the same as the username or reverse username.
    For the MRS 1.5.0 cluster, the password complexity requirements are as follows:
    • The password must contain 6 to 32 characters.
    • The password must contain at least two types of the following: lowercase letters, uppercase letters, digits, spaces, and special characters which can only be ~`!?,.:;-_'(){}[]/<>@#$%^&*+|\=
    • The password cannot be the same as the username or reverse username.
    NOTE:

    For MRS clusters of other versions, the password complexity requirements are as follows:

    • The password must contain at least eight characters.
    • The password must contain at least four types of the following: lowercase letters, uppercase letters, digits, spaces, and special characters which can only be ~`!?,.:;-_'(){}[]/<>@#$%^&*+|\=
    • The password cannot be the same as the username or reverse username.
    • The password cannot be the same as the previous password.