Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Misc
Reload this Page forgot root password
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Misc Any questions or Linux discussion that does not fit in any of the other technical areas.

Reply
 
Thread Tools Display Modes
Old 02-07-2008   #1 (permalink)
Linux Newbie
 
stinkoman's Avatar
 
Join Date: Jan 2008
Location: New Jersey
Posts: 165
Send a message via Yahoo to stinkoman
forgot root password

my buddy forgot his root password (single home desktop) is there a way for him to get it back? or should he just rebuild his system?
__________________
please click my minicity!
or its industry more or even its roads
Everyone is immortal until the day they die.
Registered Linux user #462038
stinkoman is offline   Reply With Quote
Old 02-07-2008   #2 (permalink)
Linux Enthusiast
 
Join Date: Nov 2007
Posts: 582
Boot off a LiveCD, mount the root (/) filesystem, delete the encrypted root password out of /etc/shadow.

Reboot and boot off the HDD. The root account will not have a password.
HROAdmin26 is offline   Reply With Quote
Old 02-07-2008   #3 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, INDIA
Posts: 18,411
Or
Boot up in Single User Mode and execute passwd command. Assign new root password. It wont ask of earlier password.
__________________
New Users: Read This First


devils casper is offline   Reply With Quote
Old 02-07-2008   #4 (permalink)
Linux Newbie
 
stinkoman's Avatar
 
Join Date: Jan 2008
Location: New Jersey
Posts: 165
Send a message via Yahoo to stinkoman
how do i boot in single user mode?
__________________
please click my minicity!
or its industry more or even its roads
Everyone is immortal until the day they die.
Registered Linux user #462038
stinkoman is offline   Reply With Quote
Old 02-07-2008   #5 (permalink)
Linux Enthusiast
 
Join Date: Nov 2007
Posts: 582
Man, I never use single user mode except in Solaris....and that requires the root password. I *never* remember this for Linux...

Quote:
how do i boot in single user mode?
Google => Linux Single User Mode Passwd
HROAdmin26 is offline   Reply With Quote
Old 02-07-2008   #6 (permalink)
Linux Newbie
 
stinkoman's Avatar
 
Join Date: Jan 2008
Location: New Jersey
Posts: 165
Send a message via Yahoo to stinkoman
i feel like my computer is naked after reading that rticle
__________________
please click my minicity!
or its industry more or even its roads
Everyone is immortal until the day they die.
Registered Linux user #462038
stinkoman is offline   Reply With Quote
Old 02-07-2008   #7 (permalink)
Trusted Penguin
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 3,548
Quote:
Originally Posted by stinkoman View Post
i feel like my computer is naked after reading that rticle
I felt the same way after discovering how easy it was to reset the root password. Many people set a password for the bios and for grub to increase the security, butI think if anyone has physical access to your machine, they can always find ways to compromise it if they wish.
daark.child is offline   Reply With Quote
Old 02-08-2008   #8 (permalink)
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
Another good one just to round out the field:

Upon boot edit the boot options:
For LILO

"linux init=/bin/bash"

or add it to the Grub "kernel" line
It will give a prompt earlier at which you can use passwd for root. (after remounting -rw)
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Vista + Kubuntu Manaluusua Ubuntu Help 15 12-18-2007 05:17 PM
problem with back track 2.0!!! AG-Spider Slackware Linux Help 23 08-23-2007 07:31 AM
Install Firefox from tar.gz LeeBuckley Debian Linux Help 21 06-07-2007 08:16 AM
Restoring Alsamixer settings at boot... fourinjuly4ij SuSE Linux Help 11 02-07-2007 09:25 PM
GRUB - Can't load Knoppix fingal Installation 11 03-16-2004 09:58 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 02:48 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0