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 Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

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 04: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 07: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 Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-11-2007
mightypp.nits mightypp.nits is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 7
hw to reterive root passwd

heyy
i forgot my root passwd but i cant reinstall due to some reason can anyone tell me hw to reterive root passwd
  #2 (permalink)  
Old 11-11-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Not knowing what system you have means we can only give general advice.

I suggest you post operating system version, hardware etc.

The general solution is to boot in single user mode using a CD-ROM, then mount the root partition which typically has the /etc directory on it, and manually edit the "passwd" file to remove the password for root.

Altenatively use "chroot" to set the volume as your root and run the passwd command directly.
  #3 (permalink)  
Old 11-22-2007
mightypp.nits mightypp.nits is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 7
Question

ya ...im using fedora-7 and i had set the grub loading password ....do i have any way to change or retreive my root passwd......actually i have some important data that i dont want to loose.....
  #4 (permalink)  
Old 11-22-2007
prowla prowla is offline
Read Only
  
 

Join Date: Nov 2007
Posts: 165
You may be able to boot into maintenance mode (or something similar), but that may ask for the root passwd anyway!
Otherwise, you could boot from a "live" CD and then mount your hard disk to be able to get at the file as described in the first response (note that you delete the password field with the editor, not the whole line).
Once that's done, you can then reboot from your hard disk and login with no password.
Make a copy of that passwd file before you edit it, or you could get in a right pickle if you make a mistake.
  #5 (permalink)  
Old 11-22-2007
mightypp.nits mightypp.nits is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 7
hiiiiii.....
thanks i tried the chroot command and i m able to change my root passwd.....but as a security reason....can u telll me hw to restrict it ...i mean i had entered as a user and by using this command i m able to view my root directory .....at this instant its ok for me ...but hw to restrict this....or any user can have access to this............
  #6 (permalink)  
Old 11-22-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
You have to

(a) restrict the BIOS options for what the machine can boot from, eg only from first harddisk and password protect the BIOS

(b) put the machine in a locked room or cupboard

unless you encrypt the drive you can always remove the drive from that machine and put it in another machine to do the same thing.

Of course once you do that you will be posting a message saying how do you reset the BIOS password or asking where you put the key for your cupboard.
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 12:15 PM.


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