Ever heard of passwd? If you're on as root just change the password, sheesh. You don't need to edit /etc/shadow.
I am relatively sure that, in order to change a password using passwd, you need to enter the old password first. So, by deleting it in /etc/shadow, you can change a password without entering the old one because the system believes there was no password to begin with.

nifty trick, btw