bitmechanic
asked on
Lost password for ubuntu. How hard is it to get back in ?
Lost password for ubuntu. How hard is it to get back in ? I have access to reboot the PC.
1)reboot with install cd (or live ch or whatever)
2)choose keyboard (stop there)
3)switch to tty 2 (or 3, the one which say press enter to get shell)
4) mount root partition ('/') if you don(t know the root partition use fdisk or so)
5) chroot to the mountpoint
6) issue passwd command
7) sit back and reboot
2)choose keyboard (stop there)
3)switch to tty 2 (or 3, the one which say press enter to get shell)
4) mount root partition ('/') if you don(t know the root partition use fdisk or so)
5) chroot to the mountpoint
6) issue passwd command
7) sit back and reboot
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That wasn't very well explained!
Once you have edited the file, then root has no password. Reboot the system, and login as root (with no password), then 'passwd' to create your new password.
HTH:)
Once you have edited the file, then root has no password. Reboot the system, and login as root (with no password), then 'passwd' to create your new password.
HTH:)
pjedmond's procedure will work perfectly to reset the password
It's going to but to single-user mode with root logged in and you reset root pw with passwd.