The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
root passwd expiration on AIX aixguy AIX 3 06-30-2009 03:03 AM
How to set new Root Passwd gini SUN Solaris 2 12-05-2006 04:33 PM
Recover root passwd gini SUN Solaris 5 11-29-2006 08:09 AM
Need to change root passwd mayewil UNIX for Dummies Questions & Answers 4 10-27-2006 06:03 PM
Preventing passwd root? scottsl UNIX for Advanced & Expert Users 4 01-06-2006 12:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 05-21-2008
techbravo's Avatar
techbravo techbravo is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 14
Question forgot root passwd

hi
i have a RHEL 4 and have forgot root passwd
tried to boot in by singel user and then changing the passwd but it's not letting me do that ......throwing some weird error as .......manipulation
i also tried to make a new user from CLI but even though it's not letting me in from that user as well .......
i even tried 'rm shadow' that dosent help as welll.....!!

please advice....

techbravo
  #2 (permalink)  
Old 05-21-2008
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Hi,
If you still have the install CD then boot from it into rescue/repair mode, mount the disk which hosts /etc/passwd & /etc/shadow and erase the root password ...
What weird error did you get when booting in single user ? is it password protected ?
  #3 (permalink)  
Old 05-21-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Question What hardware & op system?

Not sure what rhel4 means, though.

I seem to recall that one way around this is to boot the server from the op console port in single-user mode, and then to reset the password. When starting in this mode, you should not get a password prompt.
  #4 (permalink)  
Old 05-21-2008
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Quote:
Originally Posted by joeyg View Post
Not sure what rhel4 means, though.

I seem to recall that one way around this is to boot the server from the op console port in single-user mode, and then to reset the password. When starting in this mode, you should not get a password prompt.
It stands for redhat enterprise linux 4 joeyg, provided the loader (grub or lilo) is not password protected, you can boot into single and reset root pw, i wonder what weird error techbravo is having
  #5 (permalink)  
Old 05-21-2008
linuxaddict7 linuxaddict7 is offline
Registered User
  
 

Join Date: May 2008
Posts: 13
IS the filesystem mounted RW? if not remount it with
mount -o remounnt,rw /

Check the permission of /etc/shadow and /etc/passwd

Do history and see what commands were run related passwd

tail /var/log/messages and see related messages. Post here if u dont understand.

Good luck!
  #6 (permalink)  
Old 05-22-2008
techbravo's Avatar
techbravo techbravo is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 14
the error is as follows
passwd:authencation token manipulation error
i tried creating another user but it's not alowing me switch user
can i know how to swith user so that can be tried.....

i think that should work .......!!
  #7 (permalink)  
Old 05-22-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Without being crazy enough to test my hypothesis, this is only speculation, but if you have removed the shadow file, I wouldn't be too surprised if that's the reason you get this error.

Do you have a backup? Can you recreate it somehow?

The customary solution is to boot into single user (perhaps from a CD or USB stick) and edit the /etc/passwd or /etc/shadow file to have an empty password field for root. Then boot the regular system, log in as root, and set a new password.
Closed Thread

Bookmarks

Tags
linux, solaris

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0