Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vmware:vcsa8:chgrootpw [2023/07/24 12:25] – created jsvmware:vcsa8:chgrootpw [2023/07/24 12:45] (current) js
Line 1: Line 1:
-====== Change root password to already used one ======+====== VCSA - Change root password to already used one ======
  
-Logon to shell and go to /etc/pam.d directory.+Reboot VCSA and press <wrap em>e</wrap> in the photon boot menu (grub): 
 +{{ :vmware:vcsa8:vc-root-change-pw-photon-menu.png?direct |}} 
 + 
 +Add in the linux line at the end <wrap em>rw init=/bin/bash</wrap> 
 +{{ :vmware:vcsa8:vc-root-change-pw-boot-line.png?direct |}} 
 + 
 +Press <wrap em>F10</wrap>e and then go to /etc/pam.d directory.
  
 Open vi and file system-password: Open vi and file system-password:
Line 7: Line 13:
 <code bash>vi /etc/pam.d/system-password</code> <code bash>vi /etc/pam.d/system-password</code>
  
-Change rember=5 (or other count) to 0:+Change <wrap em>remember=</wrap>5 (or other count) to <wrap em>0</wrap>: 
 + 
 +{{ :vmware:vcsa8:vc-root-change-already-used-pw.png?direct |}}
  
-{{ :vmware:vcsa8:vc-root-change-already-used-pw.png?direct&400 |}}+Now start passwd and enter your old root password and reboot the VCSA with <code>reboot</code>