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.  
bitmechanicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

m1tk4Commented:
Reboot the PC, when you get to grub press 'a' to add parameters to the kernel. Add a space and 1

It's going to but to single-user mode with root logged in and you reset root pw with passwd.
0
verborghsCommented:
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


0
pjedmondCommented:
1.   Boot with knoppix live CD.
2.   Mount / partition.
3.   Edit /etc/shadow directly to clear password:
The line:

root:$1$44094597$2vND6EtSqpJy0I5nL1q2L/:13234:0:99999:7:::

needs to become:

root::13234:0:99999:7:::

and now root has no password. Just 'passwd' to create one:)

HTH:)



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pjedmondCommented:
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:)
0
Cherukuri30Service EngineerCommented:
pjedmond's procedure will work perfectly to reset the password
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.