/How to reset the root password on VMware Cloud Director on v10.6

How to reset the root password on VMware Cloud Director on v10.6

In this quick blog post, I’ll go over how to reset the root password on How to reset the root password on VMware Cloud Director on v10.6. There’s been a slight change compared to previous versions, so here’s what’s new.

In earlier versions, we used the pam_tally2 command to reset failed login attempts. However, with version 10.6, this has changed — now we need to use the faillock command instead.

Step 1 – Enter GRUB and Boot into Single User Mode

Reboot the Photon OS VM.

When the GRUB menu appears, press e to edit the boot entry.

Look for the line that starts with linux and add the following at the end:

Your screen should look like this:

Press Ctrl + X or F10 to boot with these changes.

Step 2 – Remount, Unlock, and Reset

Once you land in the shell, run the following commands:

Then, check the login failures (optional, but helpful):

Now, reset the failed login attempts:

The, update the root password(if needed):

You’ll be prompted to enter and confirm the new password.

Here’s how the full process looks in action:

Step 3 – Reboot

Once done, cleanly exit:

If needed (but not recommended in production environments), you can also set the password to never expired: To set the root password never to expire: chage -I -1 -m 0 -M 99999 -E -1 root 

And that’s it!  You’ve successfully reset the root password on VMware Cloud Director 10.6. This change to faillock reflects updates in the newer Photon OS versions, so keep this in mind when troubleshooting future access issues.

Share this article if you think it is worth sharing. If you have any questions or comments, comment here, or contact me on Twitter(yes for me is not X but still Twitter).

©2025 ProVirtualzone. All Rights Reserved
By | 2025-03-30T17:25:26+02:00 March 30th, 2025|vCloud Director, VMware Posts|0 Comments

About the Author:

I have over 20 years of experience in the IT industry. I have been working with Virtualization for more than 15 years (mainly VMware). I recently obtained certifications, including VCP DCV 2022, VCAP DCV Design 2023, and VCP Cloud 2023. Additionally, I have VCP6.5-DCV, VMware vSAN Specialist, vExpert vSAN, vExpert NSX, vExpert Cloud Provider for the last two years, and vExpert for the last 7 years and a old MCP. My specialties are Virtualization, Storage, and Virtual Backup. I am a Solutions Architect in the area VMware, Cloud and Backup / Storage. I am employed by ITQ, a VMware partner as a Senior Consultant. I am also a blogger and owner of the blog ProVirtualzone.com and recently book author.

Leave A Comment