I'm currently trying to create a root account from single user mode in OSX Yosemite
/sbin/mount -uw / launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist passwd
The first two lines work fine, but after entering "passwd" nothing appears. Even a hint for saving input commands. I do not believe that he sets the password, because everything that I type is apparently, and even if I type the same text twice, nothing happens.
When I try to run this command after the computer boots up and I logged into my account, "passwd" works as expected, it asks me for the old password and the new password twice.
source share