Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-14-2007, 08:33 PM   #1
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Reseting Root Password

Hey guys is there way to reset the root password, my linux box wont accept the root password that i enter, i must have typed it incorrectly during the instllation.
Old 09-14-2007, 08:41 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
The easiest way is probably to boot the machine to a live/recovery CD, mount the system, and then wipe the root password from /etc/shadow. Then you can reboot, log in as root (there will be no password and create a new one.
Old 09-15-2007, 05:19 AM   #3
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
If you're using Ubuntu I think it would be easier to boot in recovery mode, which appears in the boot menu. This will log you in as root automatically. You can then reset the password using passwd. Since Ubuntu doesn't have the root account enabled by default, I guess you're probably using CentOS though. Maybe this has a similar facility, have a look - try passing the option "single" to the kernel at boot time.
Old 09-16-2007, 08:56 PM   #4
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
wow thank guys problem solved....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 07:27 AM
Reseting or recovering root PW rusty105 Red Hat 3 02-10-2006 06:10 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration