Getting error in Terminal when typing Passwd *Username*
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