I accidentally deleted all admin accounts, I can only use Guest Account and I don't know my root password. How can I recover my Admin account?
1 Answer
I'm assuming you have an existing home directory and that you want to reassociate your user with that directory.
- Reboot into recovery. Hold Left Shift at boot, select "Other options" then pick the latest recovery mode.
- Pick "root shell prompt" when the recovery menu loads.
Run the following:
mount -o remount,rw / adduser --home /home/username --no-create-home <username> sudo sudo reboot
Then you should be able to log in.
-
I dont know anything, but I clicked "delete" in the User Management Page.– CanOct 15, 2013 at 11:30