- subscription-manager register --username USER --password PASSWORD --auto-attach
2. subscription-manager repos --enable=rhel-7-server-optional-rpms
2. subscription-manager repos --enable=rhel-7-server-optional-rpms
https://www.youtube.com/watch?v=0L-lFCbOVgk
sudo su -
mkdir /temp
mount /dev/sda5 /boot
cd /boot
cp state.tgz /temp
cd /temp
tar -xf state.tgz
tar -xf local.tgz
rm *.tgz
cd etc
nano shadow
cat shadow
root::18355
cd ..
you are in /temp
tar -cf local.tgz etc/
tar -cf state.tgz local.tgz
mv state.tgz /boot
umount /boot
reboot
set a new password