/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:

rw init=/bin/bash

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:

mount -o remount,rw /

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

/usr/sbin/faillock --user root

Now, reset the failed login attempts:

/usr/sbin/faillock --user root --reset

The, update the root password(if needed):

passwd

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:

umount /
reboot -f

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 hold VCP DCV 2022, VCAP DCV Design 2023, and VCP Cloud 2023, plus older certifications including VCP6.5-DCV, VMware vSAN Specialist, and an old MCP. I have been a vExpert for 11 consecutive years, plus vExpert vSAN, vExpert NSX, and vExpert Cloud Provider. I was a Veeam Vanguard from 2018 to 2025. My specialties are Virtualization, Storage, and Virtual Backup.I am a Senior VMware and VCF Engineer at Leaseweb, working on enterprise virtualization, cloud, and storage infrastructure at scale. I am also an analyst at GigaOm.I am also a blogger and owner of the blog ProVirtualzone.com, an Object First Ace, and a book author.

Leave A Comment