Only account is a locked "Guest" after upgrading to OS Lion
An easier way is to:


Get a terminal/console somehow (e.g. start up in recovery mode by holding down option).
Delete the file /Volumes/&lt;your root volume&gt;/Library/Preferences/com.apple.loginwindow.plist.
Reboot.


That's it.