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 > 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 11:12 AM
How to set new Root Passwd gini SUN Solaris 2 12-05-2006 04:33 PM
Need to change root passwd mayewil UNIX for Dummies Questions & Answers 4 10-27-2006 06:03 PM
Recover root password nitinkgoud SUN Solaris 1 07-18-2006 05:01 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-25-2006
gini gini is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 27
Recover root passwd

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

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,955
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.
  #3 (permalink)  
Old 11-25-2006
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
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.
  #4 (permalink)  
Old 11-26-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is online now Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,955
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
  #5 (permalink)  
Old 11-27-2006
sparcguy sparcguy is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Posts: 315
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
  #6 (permalink)  
Old 11-29-2006
gini gini is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 27
Thanks a lot
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 11:26 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