LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
root password not encrypted


Hi,

I have changed my rootpassword :

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

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

My distro : slackware 10.2

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

Rep: Reputation: 32
Yep,
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.

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

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

Rep: Reputation: 49
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 06:04 AM.
 
Old 10-19-2005, 05:56 AM   #4
ichrispa
Member
 
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?
 
  


Reply


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 09:44 PM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
strange MYSQL password Encrypted max_tcs Linux - Software 2 03-30-2005 04:45 AM
strange MYSQL password Encrypted max_tcs Linux - Newbie 2 03-28-2005 05:39 PM
encrypted password 64 characters? uribo Programming 1 04-22-2003 08:51 AM


All times are GMT -5. The time now is 10:08 AM.

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