From Windows to a Debian GNU/Linux desktop, sans the geekness
The Original - since June 2006 - Run Debian GNU/Linux and be Happy.
"The music business is a cruel and shallow money trench, a long plastic hallway where thieves and pimps run free, and good men die like dogs. There's also a negative side."

--Hunter Thompson

 

this site  web    
The Goods
Home Page
Forum
debiantutorials.org Licensing
Website Disclaimer
Site Map
Links
w32codecs
How to really switch Mom to Linux
Documentation
Release Notes
Developers Reference
Debian Survival Guide
Debian Books
Manuals
Debian Security
Linux Dictionary
Leaving Windows
Resize Windows Partition for Dual-Booting
Back up your Partitions, Imaging
Still Suffering Windows
Keep your Money, your Sanity and your Self-Respect
Installing Debian Etch
Debian GNU/Linux (Etch) Installation Tutorial
My Etch Desktop in 150 words or Less
Upgrade Sarge to Etch
Configure Debian Etch
Multimedia on Debian Etch
Install nVIDIA 3d driver on Debian Etch
Wireless on Debian Etch: Broadcom - bcm43xx
Klikit, Klikit good
Handy Little Things
Package Management
Peripherals & Debian Etch
Set up your web cam on Debian Etch
Printing in Debian (Browsers, too)
Your ipod on Debian Etch
Atheros Wireless
Broadcom Wireless
Etch on the Desktop
Visitors apache log reader
Andrea del Sarto
(Poetry snippet for your Ignorant Ass)
Beagle on Debian Etch
Convert Digital Camera .mov Files
Some Debian Etch System Files
My Debian Desktop
Using wget
Copying or Ripping DVD's in Linux (Debian)
Reset root password
So, you want to run Linux
Convert mov files
Securing Debian
Password Protect Grub Boot Loader
Debian Etch as Server
Debian Linux file and print server: NFS, CUPS, LPR
Stream your music with gnump3d
Simple local web server on Etch
Web Server on Debian Etch
Miscellaneous Linux
Linux Conventions
Can People read my Documents?
Install Software on your Linux System (Debian)
Partition your Hard Drive
History of debiantutorials.org
A School Without Windows (PDF)
How to talk to Tech Support
Linux Demystified
Off Topic
A DRM Dissertation
An Artist's take on Downloading Music
An Insane and Damaging lack of Understanding
On Children and Drugs
On Visitor Q
Intellectualism for the Masses
debiantutorials.org stats
Smart Crows
How old are We?
Why we run Debian
How not to ask an egomaniac like myself for an article
Sarge Specific Tutorials
Installing Debian Sarge, net install, no DHCP
Easy Graphical Sarge Installation Tutorial
Rebuilding my Debian Sarge Machine
Multimedia for Sarge
w32codecs
nVIDIA on Sarge
Trouble Burning discs: cdrecord
Athcool on Debian Sarge
Where are my Newly Installed Apps?
Easy LAMP on Debian Sarge
Archive
Sites Worth a Look
Debian Mailing List
spidercider
Linux Comparison at PolishLinux.org
Thin Clients
Common Commands
Common iptables Filtering
iwouldntsteal.net
Big-Ass iptables info Page
iptables Port Reference
README: Firewall
General Security Tips
Newbie Security
Kickass RFC's
Data Breaches
Hemp Seed Oil
linux-hardcore.com
Search for a local Computer Tech
Evelyn's Linux Cheat Sheet
Lotsa (687) Linux Commands

Favorite Utilities

Super Grub Disc
System Rescue Disc
News Feeds
visitors run
operating system
Linux
Windows
Mac
Unknown
BSD
54.8 %
39.8 %
3.40 %
1.50 %
0.10 %

web browser
Firefox
Mozilla
IE
Opera
Epiphany
41.4 %
25.1 %
15.8 %
8.40 %
3.50 %
updated 17apr08
What's Root?
Root is the super-ultra-mega. All system commands on a Linux box need to be done as root. This means installing software and changing files not in your /home directory, etc. In your terminal, if you're logged in already become root by typing su at your $ prompt, then the root password. Log in the system directly as root from a terminal, but not the graphical login. # shows root.
dediantutorials.org is ad-free
debiantutorials.org has always been and will always remain ad-free I make no unrealistic demands that you "owe me for my time and bandwidth" in order to use my site. I detest all those scumbags out there that think that they are owed something for putting a web site up. I do debiantutorials.org because I love it. You owe me nothing.
If you can walk and chew gum at the same time, you can run Linux

    Friday, May 09, 2008      Contact  Etch Info  what's new in Etch  Linux Demystified  Our Forum
Reset your root Password on your Debian Machine PDF Print E-mail
Written by machiner   
Tuesday, 04 March 2008
If you have physical access to a Linux box there is all kinds of havoc you can wreak. Knowing the root password isn't necessary because there are a couple ways that you can change it. Keep tabs on your root password.

Sometimes stuff happens. Sometimes you set Debian up on your buddy's machine and you're both too drunk to remember what you did the next day. Root password!? OMFG! No, it's never happened to me, but I can believe it does happen.

On your Debian box, and probably most other Linux distributions, a way to reset the root password is to reboot into single-user-mode. Some distros call it a recovery mode. It's not enough to simply select single-user-mode when you boot because you will still be prompted for the root password. What you have to do is edit your kernel line. Wicked easy.

When Grub shows you your kernel boot options, hit the letter e to enable editing. Once you're actually in edit mode, arrow down to the kernel line and hit e again. What you need to do is add the following to the end of the line:

init=/bin/bash

So, your kernel option entry might red something like this:

/vmlinuz-2.6.18-5-486 root=/dev/hda2 ro vga=791 init=/bin/bash

Hit enter after you've appended the entry, and then the letter b to boot that kernel. In a moment you will be entered into a limited bash shell so you can run the passwd command to reset your root password. You will not be able to run many other commands. For example: # shutdown -r now will not work. However, # halt will, so you can shut the box down after you've reset the root password with that. It'll shut down your hard drives but you'll probably have to power down the machine yourself.

Restart your machine and then boot normally. Once up, fire up a terminal and check to see if you can't become root.

There ya go. Yo have successfully reset the root password on your Debian GNU/Linux machine. It's creepy posting something like this but I have received many inquiries as to how it's done by some desperate sounding folks.

--machiner 4 mar 08 all creeped out

discuss





Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
Trackback(0)
Comments (6)Add Comment
Mu hahahahahahahaaaa
written by creepy guy, March 06, 2008
Muu haa hahahahahahahahahaa hahahahahah hahahahahahahaaaa
You got locked out, mwahahahaha!
written by guest, March 13, 2008
"I don't like telling you all how to do something like this but I have received many inquiries as to how it's done by some desperate sounding folks."

You mean you got locked out of your own box, and you've posted your two weeks of frantic research here so you don't lose it ;)
lol
written by machiner, March 13, 2008
Yeah....that's what I do for all the tutorials I write.

tool
thanks
written by dhalgren, March 19, 2008
thanks machiner... just when I needed it.
thanks!
written by petekorm, April 29, 2008
thanks buddy, happened to me, but when I tried it I got the '' Authentication token lock busy '' thingy.. tried with the -u option, and it said '' cannot unlock the password file; try again later '' .... hmmm, when is later?

Im a newbie, please bare with me

thanks again
fixed!
written by petekorm, April 29, 2008
ok if someone has the same problem as I did, when you edit your kernel line, change the RO to RW (read/write i guess, but again its just a guess) so the final line should look like this :

/vmlinuz-2.6.18-5-486 root=/dev/hda2 rw vga=791 init=/bin/bash (instead of)
/vmlinuz-2.6.18-5-486 root=/dev/hda2 ro vga=791 init=/bin/bash

Write comment

security code
Write the displayed characters


busy
 
Linux Stuff at digg
How folks arrive at debtoots

direct Address/bookmarks...............69.5 %
Links from search engines...............23.6 %
links from external pages.................6.70 %
Updated 12mar08

Creative Commons License © debiantutorials.org Thanks for dropping by. I hope you have found this site to be helpful.   Search for a local Computer Tech  debiantutorials.org