A Workaround for Password Expiry
Perform the following workaround if there is an issue observed during log in:
- Open the OpenStack console and click Send
CtrlAltDel.
Figure A-1 Console
- 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
- To reboot, press Ctrl X or F10.
- 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
- Run the following command to verify the existing settings of password
expiry:
sudo chage -l cloud-user
Figure A-4 Root password
- 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
- Run the following command to verify the settings of the password
expiry:
sudo chage -l cloud-user
Figure A-6 Expiry date change
- If SELinux is enabled, run the following command to relabel the entire
filesystem:
sudo touch /.autorelabel
- Run the following command to restart the system:
sudo reboot -f
Figure A-7 SElinux Relableing