Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-18-2005, 04:03 AM   #1
LQ Newbie
Registered: Sep 2005
Distribution: Slackware 10.2
Posts: 9

Rep: Reputation: 0
root password not encrypted


I have changed my rootpassword :

$>usermod -p not_encrypted_pw root
don 't work :-(

So, I can no longer login. Is there a way to repair this?

My distro : slackware 10.2

Old 10-18-2005, 04:41 AM   #2
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
there are three ways: one, you get permission to read /etc/passwd and start crackjack of on the entries
two, you start guessing (get a cup of coffee, this will take a long time!)
three, burn all important files to cd and reinstall the system (you can leave them as they are if you have a /home-partition)

The point is: The system will do everything it can so you don't get the root password. I mean, that' s the whole point of passwords, right?

There is a fourth way: grap the kernel source and start reading. Find exploits.

Try changing the password the traditional way net time: "passwd" !

Last edited by ichrispa; 10-18-2005 at 04:44 AM.
Old 10-18-2005, 05:02 AM   #3
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
I'm not sure what you're asking. Do you want to reset the root password?

If that's what you want, you can append the "single" option to the kernel when you boot, and then use the "passwd" command ("passwd" is the correct way to change passwords); see this page for more info.

Otherwise, if you can boot to a rescue disk or LiveCD like Knoppix or something, you can mount the drive and edit the /etc/shadow file on it and delete the root password hash.

Last edited by spooon; 10-18-2005 at 05:04 AM.
Old 10-19-2005, 04:56 AM   #4
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Is there a case that the password program you are using tries to decrypt a cleartext password using md5? Is authentication only impossible through the shell or does PAM fail as well?


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
[SOLVED] command to create encrypted password student04 Linux - Security 8 09-15-2013 08:44 PM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
strange MYSQL password Encrypted max_tcs Linux - Software 2 03-30-2005 03:45 AM
strange MYSQL password Encrypted max_tcs Linux - Newbie 2 03-28-2005 04:39 PM
encrypted password 64 characters? uribo Programming 1 04-22-2003 07:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 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