Getting error in Terminal when typing Passwd *Username* I’ve been trying to change the root password via Terminal on macOS. I launched Terminal by holding cmd + S while booting, which logged me automatically in as root without password.

When I type in Passwd root or Passwd and then hit enter, I just get an error message that says


  the daemon encountered an error processing request


two times in a row. If a log into my user and then try that it works perfectly but I want to change it from the “cmd+S” menu.
To use passwd in single-user mode or otherwise make changes to accounts on the system, you need to load Open Directory.

launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist