The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Root Recover Issues calamine UNIX for Dummies Questions & Answers 1 02-10-2008 07:12 AM
How to set new Root Passwd gini SUN Solaris 2 12-05-2006 12:33 PM
Need to change root passwd mayewil UNIX for Dummies Questions & Answers 4 10-27-2006 03:03 PM
Recover root password nitinkgoud SUN Solaris 1 07-18-2006 02:01 PM
Preventing passwd root? scottsl UNIX for Advanced & Expert Users 4 01-06-2006 08:32 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2006
Registered User
 

Join Date: Jul 2006
Posts: 27
Stumble this Post!
Recover root passwd

Any body pls let me know the procedure to recover ROOT password in Sun Netra 20 Server..I forgot the password.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-25-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,313
Stumble this Post!
boot the mashine with a cd/dvd or via net to single user, mount the internal disk and replace the password with a known value in /etc/shadow for user root.
Reply With Quote
  #3 (permalink)  
Old 11-25-2006
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 240
Stumble this Post!
Quote:
Originally Posted by DukeNuke2
boot the mashine with a cd/dvd or via net to single user, mount the internal disk and replace the password with a known value in /etc/shadow for user root.
Or just blank out the password and then set a new one when the system has booted and you logged in without a root password.
Reply With Quote
  #4 (permalink)  
Old 11-26-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,313
Stumble this Post!
Quote:
Originally Posted by Tornado
Or just blank out the password and then set a new one when the system has booted and you logged in without a root password.
that was my first thought... but when the mashine is public a root password is better for secutity reasons
Reply With Quote
  #5 (permalink)  
Old 11-26-2006
Registered User
 

Join Date: Nov 2006
Posts: 252
Stumble this Post!
you can't recover a forgotten password, if you cannot logon you have to bring system down to the ok prompt(using stop-a) or if you are still logged on, init 0

then

ok boot cdrom -s

once system comes up, run format command to list your disks

0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb3801b,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb3f8f1,0

ctrl+d

mount /dev/dsk/c0t1d0s0 /mnt

vi /mnt/etc/shadow

root:qR8FoxgqZibJg:13428:7:84:::: ### example

remove everything between the 1st and 2nd ':' like so

root::13428:7:84::::

umount /mnt

sync;sync;sync; reboot
Reply With Quote
  #6 (permalink)  
Old 11-29-2006
Registered User
 

Join Date: Jul 2006
Posts: 27
Stumble this Post!
Thanks a lot
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0