How to change the Admin password from blank on OS X Lion?
In Terminal.app type passwd, this will prompt you to enter a password for your account.

Another way is to Go into Users &amp; Groups in System Prefereneces... and click on change password if possible. Not sure in the case of a blank password if that button will be active or greyed, since I never faced this situation before.