Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old January 16th, 2003, 01:41 PM
colpaarm's Avatar
colpaarm colpaarm is offline
300lb Bench!
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2001
Location: New York
Posts: 2,191 colpaarm User rank is Corporal (100 - 500 Reputation Level)colpaarm User rank is Corporal (100 - 500 Reputation Level)colpaarm User rank is Corporal (100 - 500 Reputation Level)colpaarm User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 5 h 8 m 19 sec
Reputation Power: 11
Trying to update root password

Hi guys. I'm a new employee and I'm trying to recover a redhat linux box (v8.0) from the last programmer that was here. He didn't let anybody know what the root password was, however. I looked on the redhat site and was told the following for this version of linux

o Boot into the system in single user mode (as specified by http://www.redhat.com/docs/manuals/...nux-single.html)

o run "passwd root" to change the password

The only problem is, when I perform the second bullet point above, I receive the following error message:

Changing password for user root.
passwd: Module is unknown

Any ideas on what's going on would be greatly appreciated. Thanks in advance.

Reply With Quote
  #2  
Old January 22nd, 2003, 05:51 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,294 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 51 m 51 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
you could login to another machine which you have an accout on (for which you know the password), and copy your entries from the /etc/password and /etc/shadow files into the equiv on the new box - just for the root user... you get the idea...

If you don't have an account on another box, then ask one of the users if you can copy their password for the root user, then you can both change them...

Or last resort, if you are the only user and there are no other funcional accts on the box or any other box that you can log into, then post back and one of us can give you a couple of lines for your password and shadow files.

I think that'll do it - but someone yell if I'm barking up the wrong dog

edit: It's a bit of a cheap hax0r way of doing things.. 'd be nice to know what the actual error is !


christo

Reply With Quote
  #3  
Old January 22nd, 2003, 06:59 AM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 7
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
Sounds like a PAM error to me. PAM (short for Pluggable Authentication Modules) is used for authenticating people in a number of different ways, from logging in locally to NIS. Overwriting /etc/passwd and /etc/shadow with an existing pair sounds like just about the only way to fix it unless you can get that authentication module installed somehow.
__________________
Debian - because life's too short for worrying.
Best. (Python.) IRC bot. ever.

Reply With Quote
  #4  
Old January 28th, 2003, 08:33 PM
bizzk's Avatar
bizzk bizzk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: The Netherlands
Posts: 327 bizzk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
just an option (maybe not the best/easiest way ):

Use a linux version that fits on a floppy/cd-rom with the necessary binaries to do the task. Of couse you could also edit /etc/passwd and /etc/shadow manually

Reply With Quote
  #5  
Old February 3rd, 2003, 10:48 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
If it is a pam error (as suggested above), you can edit the pam config files to make sure things are pointing to the correct location, i believe they are in /etc/pam.d/, and the one you may want to work with is 'login' (this is all from memory, i could be way off on files/locations)

I'd just compare what the values are with a machine that you know to have working pam.
__________________
Jon Coulter
ledjon@ledjon.com

Reply With Quote
  #6  
Old February 3rd, 2003, 10:51 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
In addition to what I just said, /etc/pam.d/passwd is probably another one you want to check (infact it is likely the one you want to 'fix' to get the 'passwd' command to work)

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Trying to update root password


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway