Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to disable my authentication password in ubuntu but I forget the password
What some steps do I need to take ?
Need some help guys
Thanks
Posted

It would be a poor security system that allowed you to do this.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-Sep-15 3:59am    
Don't forget that there is a possibility to boot from another media. There are at least two methods to restore the system. Please see Solution 3.
—SA

First method


Use one or another bootable rescue disk which has the feature of resetting passwords. One of such products is GPL SystemRescueCD:
http://www.linux-magazine.com/Online/Features/Resetting-Passwords-with-SystemRescueCd[^],
https://en.wikipedia.org/wiki/SystemRescueCD[^],
http://www.sysresccd.org/[^].

See also this list: https://en.wikipedia.org/wiki/List_of_data_recovery_software[^].

It's a good idea to prepare such disk, CD/DVD, HD or flash drive in advance (but first check up what your computer's BIOS allows you to boot from; sometime, it's only CD/DVD, and sometimes USB-connected hard drive works, but not flash drive). On this disk, put several recovery tools from the list I referenced above, and beyond it, the way they could be booted separately.

There are many ways to create a multiboot flash drive. I use YUMI: http://www.pendrivelinux.com/yumi-multiboot-usb-creator[^].

Another way I tried was Rufus; it allows to use EFI, not only BIOS, but I'm not sure if it can make it multiboot, probably not.

Second method


Always have one of those HD docks (https://en.wikipedia.org/wiki/Disk_enclosure[^], the same thing, but in the form of hot-swappable docks where you can insert one of more drives, without a need to use a screwdriver, which can also be done on the run). It can actually be helpful in the fist method, too, because not all BIOS versions which allow boot from USB allow the boot from USB flash drive, then you can quickly create an USB or eSATA-connected hard drive.

Boot from another media as described in first method, but, instead of rescue disk, it could be any bootable Linux-based distro. Backup all important files to another hard drive and reinstall Linux. Then put back the files from backup.

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900