Our Logo Image

Fernhill Linux Project

A non-profit organisation who promote and encourage the use of Linux based operating systems & open source
software by providing free IT solutions, software, support, guides and advice.

Home
About Us
About Linux
Services & Support
Guides & How To's
Software
Linux Distros
News
Links
Feedback
Donations
Contact Us
Facebook
Forums


Deleted Admin Account


Using Recovery Mode

First shutdown your computer, then 'restart whilst holding shift' on the keyboard to load grub menu.

Select 'recovery mode' from the grub menu.

Ubuntu 12.04

Select 'drop to root shell' from the recovery menu.

  Use the following command 'mount -o rw,remount /'

Now type 'adduser username sudo' replacing username with your user name  ie. 'adduser  phil sudo'

You should now see a message saying 'adding user' followed by 'done'.

Type 'shutdown -r now' to restart the computer.


Ubuntu 11.10

When you reach the recovery mode menu select the third option 'remount with read write permissions'


When the process completes press 'enter' and select 'drop to root shell' from the recovery menu.


Now type 'adduser username admin' replacing username with your user name  ie. 'adduser  phil admin'

You should now see a message saying 'adding user' followed by 'done'.

Type 'shutdown -r now' to restart the computer.

Using A Live Ubuntu CD

As requested by one our users here is a video of how to easily recover admin access to ubuntu after accidentally deleting your admin account using an Ubuntu Live disc.





Fernhill Linux Project would like to thank BPWebSolutions for their help and support. By using this link BPWebSolutions will also donate a small percentage of any purchases to Fernhill Linux Project.