I am trying to reset the admin password through command line. Below command used to work till High Sierra:
sudo dscl . -passwd /Users/admin new_password
But on Mojave it throws an error saying:
Permission Denied please enter old password
Please help on alternatives or how to get this working on command line (no UI solution) since the user forgot the admin password. Thanks
sudo
without an admin password?