Changing a user's password through the command line interface

Last Updated : Oct 29, 2024 |

About this task

As an administrator, you can use the command line interface to forcibly cause a user's password to expire. In this procedure, enter a new password for the user and then run the command that will force the user to change their password the next time they log in to CMS. This procedure is useful if the user forgot their password.

Procedure

  1. From the CMS Main Menu, press F3 to access the Commands menu.
  2. Select the Unix option.

    The screen clears and a $ prompt is displayed.

  3. Run the su command.
  4. When prompted, enter the root password.
  5. Run the passwd <userid> command.

    Replace <userid> with the ID of the user whose password needs to be changed.

  6. When prompted, enter a new password for the user.
  7. When prompted, enter the password again to confirm it.
  8. At the command prompt, run chage -d 0 <userid> to force the user to change their password the next time they log in.

    Replace <userid> with the ID of the user whose password you just changed.

  9. At the command prompt, enter exit and then press Enter.

    Repeat this step to return to the main menu.