Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old February 19th, 2006   #1
majikstreet
Dipped in Ubuntu
 
majikstreet's Avatar
 
Join Date: Jul 2005
Location: olney, maryland
Beans: 532
Ubuntu 6.06 Dapper
Exclamation HOWTO: Change your forgotten password

What?! You forgot your password? What are you going to do now? You can't reinstall; you have all your critical files on your machine!

No big deal. Don't sweat it. We can change your password so easily it's not even funny.

The Howto:
1. Boot up your computer, and when you see the screen that says something like "Press ESC to enter grub," press ESC (the escape key) as soon as you can.

2. Now you should see a menu with many options. Use the arrow keys to navigate to the newest kernel (the one with the highest number) that has "(recovery mode)" written next to it. Now, hit enter (return).

3. Next, your system should boot up normally. BUT, you WILL NOT see the boot splash. Don't worry about that. Lots and lots of text WILL fly past you.

4. Now you are at a root shell.

5. Type
Code:
passwd username
replacing username with your username

6. Now a little thing will come up and say "New UNIX Password" or similar. Type the new password that you want. Hit enter. Type it again. Hit enter

7. Then, your password has been changed! Type
Code:
shutdown -r now
8. Your system is now rebooting. Once it comes back up, login with your new username and password.

9. There is no step nine.


That was easy, too easy. Congratulations!

Hope to help,
majikstreet
__________________
majikstreet is offline   Reply With Quote
Old February 19th, 2006   #2
welsh_spud
A Carafe of Ubuntu
 
welsh_spud's Avatar
 
Join Date: Jul 2005
Location: Swansea, South Wales
Beans: 106
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to welsh_spud
Re: HOWTO: Change your forgotten password

My God! That's just plain scary...


...but it will come in useful. Thanks majikstreet
welsh_spud is offline   Reply With Quote
Old February 19th, 2006   #3
majikstreet
Dipped in Ubuntu
 
majikstreet's Avatar
 
Join Date: Jul 2005
Location: olney, maryland
Beans: 532
Ubuntu 6.06 Dapper
Re: HOWTO: Change your forgotten password



yeah, it's really scary..

but it's a great feature..

That's why you should physically secure a computer that has sensitive/important stuff on it, folks.
__________________
majikstreet is offline   Reply With Quote
Old February 20th, 2006   #4
bored2k
Skinny Extra Sweet Ubuntu
 
bored2k's Avatar
 
Join Date: Feb 2005
My beans are hidden!
Re: HOWTO: Change your forgotten password

Quote:
Originally Posted by welsh_spud
My God! That's just plain scary...


...but it will come in useful. Thanks majikstreet
That's why people set up passwords for GRUB.
__________________
Sylvia: Look at what you've done to him!
Christof: I have given Truman the chance to lead a normal life. The world, the place you live in, is the sick place.
bored2k is offline   Reply With Quote
Old February 19th, 2006   #5
welsh_spud
A Carafe of Ubuntu
 
welsh_spud's Avatar
 
Join Date: Jul 2005
Location: Swansea, South Wales
Beans: 106
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to welsh_spud
Thumbs down Re: HOWTO: Change your forgotten password

I remember something like this on the old Apple iBooks. When they were booting up you could hold down ctrl-c and it would drop you into a root shell, letting you do whatever you want to the computer.
welsh_spud is offline   Reply With Quote
Old February 20th, 2006   #6
Iandefor
Fresh Brewed Ubuntu
 
Join Date: Sep 2005
Location: Bellingham, WA
Beans: 1,532
Ubuntu Jaunty Jackalope (testing)
Re: HOWTO: Change your forgotten password

Interesting. Thanks, majik.
__________________
This space intentionally left blank.
Iandefor is offline   Reply With Quote
Old February 20th, 2006   #7
majikstreet
Dipped in Ubuntu
 
majikstreet's Avatar
 
Join Date: Jul 2005
Location: olney, maryland
Beans: 532
Ubuntu 6.06 Dapper
Re: HOWTO: Change your forgotten password

Quote:
Originally Posted by Iandefor
Interesting. Thanks, majik.
no problem
__________________
majikstreet is offline   Reply With Quote
Old February 20th, 2006   #8
cronholio
Way Too Much Ubuntu
 
cronholio's Avatar
 
Join Date: Jun 2005
Location: in the fog
Beans: 325
Re: HOWTO: Change your forgotten password

It seems scary. However, the logic behind that is: If someone has physical excess to a computer, they have access to your data anyway (and be it by means of taking along the HD). UN*X was built when people used to login remotely.
__________________
Common sense is what tells you the earth is flat.
cronholio is offline   Reply With Quote
Old February 20th, 2006   #9
imagine
Gee! These Aren't Roasted!
 
Join Date: Sep 2005
Location: Germany
My beans are hidden!
Re: HOWTO: Change your forgotten password

It's not about Unix, this works in every OS, also Windows.
If you need to secure your data against people who have physical access to it, encryption is your friend.


Btw, "reboot" is shorter than "shutdown -r now". Just for the people who are really lazy.
imagine is offline   Reply With Quote
Old February 20th, 2006   #10
majikstreet
Dipped in Ubuntu
 
majikstreet's Avatar
 
Join Date: Jul 2005
Location: olney, maryland
Beans: 532
Ubuntu 6.06 Dapper
Re: HOWTO: Change your forgotten password

Quote:
Originally Posted by imagine
It's not about Unix, this works in every OS, also Windows.
If you need to secure your data against people who have physical access to it, encryption is your friend.


Btw, "reboot" is shorter than "shutdown -r now". Just for the people who are really lazy.
I know that reboot is shorter.. For some reason I felt like putting shutdown -r now

dvarsam thanks

A lesson to all: if you have valuble data on your machine, always encrypt and physically secure your machine. That is all.
__________________
majikstreet is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:31 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry