Unlock root account

A case of Emergency Mode has been seen.
Need to unlock root account to enable debug.

Test Plan:

Build load and verify root login

Story: 2010533
Task: 47392
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
Change-Id: I818014f59ea28df8dc4c3f6b61432ba45145ca1a
This commit is contained in:
Eric MacDonald 2023-02-16 14:53:18 -05:00
parent 3eef0bd7ee
commit 4eaba3a4a9
1 changed files with 2 additions and 2 deletions

View File

@ -2065,14 +2065,14 @@ ilog "**** Post - Add user/groups **"
ilog "*********************************************************"
# Set password for root to 'root'
# usermod -p '$6$hEv/K.fPeg/$ezIWhJPrMG3WtdEwqQRdyBwdYmPZkqW2PONFAcDd6TqWliYc9dHAwW4MFTlLanVH3/clE0/34FheDMpbAqZVG.' root
usermod -p '$6$hEv/K.fPeg/$ezIWhJPrMG3WtdEwqQRdyBwdYmPZkqW2PONFAcDd6TqWliYc9dHAwW4MFTlLanVH3/clE0/34FheDMpbAqZVG.' root
# To enable root password
# 1. Uncomment set root password command above
# 2. Comment out 'passwd -l root' command below
# Lock the root password
passwd -l root
# passwd -l root
# Remove admin user whether it exists or not
deluser admin || true