Unable to change password of any user account on Photon OS Appliance
search cancel

Unable to change password of any user account on Photon OS Appliance

book

Article ID: 344993

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Unable to reset the root password which is expired in PhotonOS Appliance.

 

Environment

VMware Identity Manager 3.3.x

Resolution

Tried the steps from the below-mentioned KB articles, however, it didn't fix the issue and we continued to get "permission denied" message:

https://knowledge.broadcom.com/external/article/325916/resetting-the-root-password-on-a-photon.html

Kindly follow the below steps to resolve the issue:

  • Make sure to have a healthy snapshot of the VM.
  • Validate the configurations at the OS level.
  • Execute "strace passwd root" command and validate if we get Access Denied errors.
  • Validate the configuration in /etc/pam.d/system-password file to confirm if there are any custom configuration changes performed in this file.
  • Confirm if the default config mentioned in this file is a default config.
  • Comment the last 4 lines in this file and save the file.
  • Once done, execute "passwd root" command and it should successfully give the option to change the root password.

 

Additional Information