Updated on 2022-02-22 GMT+08:00

Changing the Password of an OS User

Scenario

This section describes how to periodically change the login passwords of the OS users omm, ommdba, and root on MRS cluster nodes to improve the system O&M security.

Passwords of users omm, ommdba, and root on each node can be different.

Procedure

  1. Log in to the Master1 node and then log in to other nodes whose OS user passwords need to be changed.
  2. Run the following command to switch to user root:

    sudo su - root

  1. Run the following command to change the passwords of users omm, ommdba, or root:

    passwd omm

    passwd ommdba

    passwd root

    For example, if you run the omm:passwd command, the system displays the following information:

    Changing password for user omm.
    New password:

    Enter a new password. The password change policies for an OS vary according to the OS that is used.

    Retype new password:
    passwd: all authentication tokens updated successfully.

    The default password complexity requirements of the MRS cluster 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 new password cannot be the same as last five historical passwords.