I deleted my administrator account and log my users & groups is locked. I cannot open it, with name and old password. I cannot restore as Lion was downloaded from app store and needs login to re download.
Please carefully read
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ If you’re running OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
Drag or copy — do not type — the following line into the Terminal window, then press return:
dscl . -read /groups/admin GroupMembership
You should get the following output below what you entered:
GroupMembership: root admin1 admin2 ...
where admin1, admin2, ... are the names of the admin users.
Retrieving data ...