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 > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with Lost Root Password JoeJohnSmith UNIX for Advanced & Expert Users 3 05-18-2006 01:26 PM
lost root password in AIX Welfaric AIX 4 02-15-2006 07:55 AM
how to access root priveliges if root password is lost wojtyla Linux 1 02-18-2005 06:24 AM
Lost root password / Can't login as root Perderabo Answers to Frequently Asked Questions 0 06-22-2004 07:40 PM
Root Password Lost !!! nikk UNIX for Advanced & Expert Users 9 01-11-2003 02:17 AM

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 Rate Thread Display Modes
  #1 (permalink)  
Old 06-21-2004
GlockCW GlockCW is offline
Registered User
  
 

Join Date: Jun 2004
Location: Kaneohe Bay, Hi
Posts: 4
Unhappy Lost Root Password

I have recently become the sys adm guy for our unix systems here for my shop. I have a pretty good understanding of the system, but there is just some stuff that I don't know. Right now one of those things is to recover the password for a unix system.

I know that there is a way that you can use the cd to boot up and delete the passwd from the /etc/passwd file. Could someone please help me to do this??? Thanks

Chris
  #2 (permalink)  
Old 06-21-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Please use the search function. This question comes up a lot.

As you search, put your OS in the search string. It's different for each OS.
  #3 (permalink)  
Old 06-21-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
generally i believe if you delete the password for root in /etc/passwd you will be asked for a new password upon next reboot. this is the case correct? (luckily ive never lost my password )

but you cant do that with the OS that is on there if you dont already have the root password.

so, you have a few ways to do it. your goal is to mount that file system and change the /etc/passwd file.

first thing, you can rip out that harddrive and put it in another computer with an os on it already, so you can then mount that harddrive and edit accordingly. that however is a pain in the ass.

so, the easiet thing to do would be to boot from some cd and use that to mount that drive and edit the file.

your install cd is its OWN os. if you boot from that disk, look for an option to get to a command line. once you have a command line you are set. mount that drive, browse to
/etc/passwd and fix your computer!


as perderabo said, search, youll still find more info than what i have provided.
Sponsored Links
Closed Thread

Bookmarks

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 09:15 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