The `resetpassword` utility is failing to find users on the selected drive I booted into recovery mode and launched the terminal to run the resetpassword utility. After selecting the drive to reset passwords for, I'm seeing:-

There are no users on this volume to reset the password for.


I've run the Disk Utility to fix the drive. I've also reinstalled the OS, but I  can't reset the password.

Why does the resetpassword utility think there are no users? I looked at the passwd file and they all seem to be there.

I'm running macOS Sierra.
I've solved this by re-running the Apple Setup Assistant by booting into single-user mode,  mount -uw /, removing the .AppleSetupDone file from /var/db directory and rebooting which re-runs the Apple Setup Assistant to create users.