How do I reset a lost password (using recovery mode requires me to type the password)?
Posted
by
user16441
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user16441
Published on 2012-04-13T14:44:53Z
Indexed on
2012/04/13
23:44 UTC
Read the original article
Hit count: 144
grub2
|password-recovery
I need to reset my password. I have followed these steps:
How do I reset a lost Administrative(root) password?
However, then I go to "root" or "netroot" recovery options, it tells me:
Give root password for maintenance (or type Control-D to continue)
Clearly, I do not know the root password. If I type Control-D, I return to the list of options. From this page I read:
Under chapter 'The Other Way':
4. Highlight the line that begins kernel and press 'e' to edit
But in the grub configuration file I have no line that starts with 'kernel'. Only:
- setparams 'Ubuntu...'
- recordfail
- set gxfpayload...
- insmod part_msdos
- insmod ext2
- set root=...
- search --no-floppy...
- linux /boot/vmlinuz-2.6.38...
- initrd /boot/initrd.img-2.6....
Those are all lines in my grub. Which line should I edit? Or is there another way to reset my password?
© Ask Ubuntu or respective owner