LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 10-04-2006, 06:24 PM   #1
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Rep: Reputation: 15
Used Sun box, password problem, etc.


Hi. A couple of weeks ago I bought a used Sun Ultra 5 on Ebay that has Solaris 10. The seller said it was reset and that there should be no password to enter.

Well, I received it and sure enough I need a password. I went back and forth with him for two weeks now and can't get any further. Truly an annoying situation.

I'm thinking my only recourse is to re-install Solaris. Is this true? I don't care about losing any data, but want to get this up and running soon.

The system didn't come w/ a CD. Is there another option? Will the free version of Solaris offered on Sun's site work? I've found some articles on Google about recovering a lost password; is this an option?

Forgive me, I'm newer w/ Solaris. I know my way around Windows and Linux to some extent, but this is kind of a new environment. Thanks for your help.

Last edited by RuralTurtle; 10-04-2006 at 06:54 PM.
 
Old 10-04-2006, 06:37 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
Using the search here I see one for solaris 9. Not sure how different but may help.
http://www.linuxquestions.org/questi...d.php?t=132516

Brian
 
Old 10-04-2006, 06:41 PM   #3
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
I would be tempted to try reseting the root password with a linux liveCD.

Boot the liveCD, mount the solaris partition. Then chroot /mnt/solaris which should give you root access to the Solaris partition. Then edit the /mnt/solaris/etc/shadow file and delete the second entry (in red below) on the root line so it looks like
Code:
root:XXX:1234:123:123:::
Then save and exit the file and reboot into solaris.

Theoretically this should give you a blank root password since it's a unix-type OS. Otherwise, you need to get your hands on a solaris CD (probably doesn't have to be exactly the same version - maybe even an Opensolaris CD would work) so you can boot into single user mode.
 
Old 10-05-2006, 01:49 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
Quote:
Originally Posted by pljvaldez
I would be tempted to try reseting the root password with a linux liveCD.
Why not a Solaris LiveCD ?
Linux UFS write support is "experimental", so there is a risk of FS corruption.
Quote:
Boot the liveCD, mount the solaris partition. Then chroot /mnt/solaris which should give you root access to the Solaris partition. Then edit the /mnt/solaris/etc/shadow file and delete the second entry (in red below) on the root line so it looks like
Code:
root:XXX:1234:123:123:::
Then save and exit the file and reboot into solaris.

Theoretically this should give you a blank root password since it's a unix-type OS.
Practically too. This is the documented way of resetting a lost root password.
Quote:
Otherwise, you need to get your hands on a solaris CD (probably doesn't have to be exactly the same version - maybe even an Opensolaris CD would work) so you can boot into single user mode.
Yes, all of the Solaris installation CDs allow to run a shell session.
There is currently only one OpenSolaris based distribution available for SPARC H/W: martux (http://www.martux.org/)

Last edited by jlliagre; 10-05-2006 at 11:41 AM.
 
Old 10-05-2006, 11:37 AM   #5
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
Quote:
Originally Posted by jlliagre
Why not a Solaris LiveCD ?
An even better idea. Sorry, I didn't realize this was in the Solaris forum or I would have left it alone. I didn't even think to look if such a thing as a Solaris LiveCD existed. I've never used Solaris myself, I was just assuming it could be written to from linux...

Last edited by pljvaldez; 10-05-2006 at 11:45 AM.
 
Old 10-05-2006, 02:13 PM   #6
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks!

Thanks guys. I was able to download a free copy of Solaris/SPARC & boot via CD, etc. I'm back in business. Thanks for the kind follow ups.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding SSH (Sun box to Linux box) oswald21 Linux - Newbie 2 07-08-2006 02:06 PM
Slackware - Ultra 10 ( Sun Box ) dakota rob Linux - Software 0 10-25-2004 09:18 AM
Password Message Box when accessing linux box from Window Machine mikeccs Linux - Networking 1 08-04-2004 05:47 AM
Sun SPARCstation 10 Pizza Box Rebuild... cparker15 Solaris / OpenSolaris 8 09-03-2003 07:45 AM
KVM Switch for Sun box, and PC... fishsponge Solaris / OpenSolaris 1 06-25-2003 09:34 AM


All times are GMT -5. The time now is 12:00 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration