Alright folks, let's say you've lost your root password, or simply cannot log in as root after a hard drive install, and have no privileged users on your system. I'm about to show you how to get back in the game as root with a quick and dirty password-change hack.
Reboot your computer. Wait for the grub screen... (recovery mode)
Press <e>.
Using your arrow keys, scroll back and change ro to rw
At the end of the line add: init=/bin/bash
Press F10
Type at the prompt: passwd root
Enter the new password twice.
Type : reboot -f
Power back up and let it boot into Kali normally.
Log in as root with your new password.