Help Center > > User Guide> Managing an Existing Cluster> Security Management> Changing the Password of User admin

Changing the Password of User admin

Updated at:Sep 08, 2020 GMT+08:00

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

If the password is changed, the downloaded user credential will be unavailable. Download the authentication credential again, and replace the old one.

Changing the Password of User admin on the Cluster Node

  1. Update the client of the active management node. For details, see Updating a Client.
  2. Log in to the active management node.
  3. (Optional) To change the password as user omm, run the following command to switch the user:

    sudo su - omm

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

    cd /opt/client

  5. Run the following command to configure environment variables:

    source bigdata_env

  6. Run the following command to change the password of user admin: This operation takes effect in the whole cluster.

    kpasswd admin

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

    For the cluster, the default password complexity requirements are as follows:
    • The password must contain at least eight characters.
    • The password must contain at least three types of the following: uppercase letters, lowercase letters, digits, spaces, and special characters ('~!@#$%^&*()-_=+\|[{}];:'",<.>/?).
    • The password cannot be the username or the reverse username.

Changing the Password of User admin on MRS Manager

You can change the password of user admin on MRS Manager only for clusters with Kerberos authentication enabled and clusters with Kerberos authentication disabled but the EIP function enabled.

  1. Log in to MRS Manager as user admin. For details, see Accessing MRS Manager.
  2. Click the username in the upper right corner of the page and choose Change Password.
  3. On the Change Password page, set Old Password, New Password, and Confirm Password.

    Figure 1 Changing the password of user admin
    The default 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: uppercase letters, lowercase letters, digits, spaces, and special characters ('~!@#$%^&*()-_=+\|[{}];:'",<.>/?).
    • The password cannot be the username or the reverse username.

  4. Click OK. Log in to MRS Manager with the new password.

Resetting the Password for User admin

  1. Log in to the Master1 node.
  2. (Optional) To change the password as user omm, run the following command to switch the user:

    sudo su - omm

  3. Run the following command to switch to the client directory, for example, /opt/client:

    cd /opt/client

  4. Run the following command to configure environment variables:

    source bigdata_env

  5. Run the following command to log in to the console as user kadmin/admin:

    kadmin -p kadmin/admin

    The default password of user kadmin/admin is KAdmin@123, which will expire upon your first login. Change the password as prompted and keep it secure because the password cannot be reset after being lost.

  6. Run the following command to reset the password of a component running user: This operation takes effect on all servers:

    cpw Component running user name

    For example, to reset the password of user admin, run the cpw admin command.

    For the MRS 1.8.2 or later cluster, the default 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: uppercase letters, lowercase letters, digits, spaces, and special characters ('~!@#$%^&*()-_=+\|[{}];:'",<.>/?).
    • The password cannot be the username or the reverse username.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel