A Workaround for Password Expiry

Perform the following workaround if there is an issue observed during log in:

  1. Open the OpenStack console and click Send CtrlAltDel.

    Figure A-1 Console


    Console

  2. Press "e" continuously and add the rw init=/bin/bash when the following screen appears:

    Below is a sample screenshot:

    Figure A-2 Command bash


    Command bash

  3. To reboot, press Ctrl X or F10.
  4. Wait for the # prompt, then remount the filesystem in read or write mode using the following command:
    sudo mount -o remount,rw /

    Figure A-3 Remounting the Filesystem


    Remounting the Filesystem

  5. Run the following command to verify the existing settings of password expiry:
    sudo chage -l cloud-user

    Figure A-4 Root password


    Root password

  6. Run the following command to set the cloud user's password expiry to never:
    sudo passwd -x -1 cloud-user

    Figure A-5 Cloud user password


    Cloud user password

  7. Run the following command to verify the settings of the password expiry:
    sudo chage -l cloud-user

    Figure A-6 Expiry date change


    Expiry date change

  8. If SELinux is enabled, run the following command to relabel the entire filesystem:
    sudo touch /.autorelabel
  9. Run the following command to restart the system:
    sudo reboot -f

    Figure A-7 SElinux Relableing


    SElinux Relableing