LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
Search this Thread
Old 05-22-2005, 10:49 AM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 532

Rep: Reputation: 30
Lost root password


I have lost root password for Soalris V10 Intel platform, I have read many cases similar to mine (http://www.techgirl-net.com/root.shtml
http://www.geocities.com/~gregl/htm/s86faq.html,)

I used CD 1 / 4 (I have got 4 CDs for Solaris V10) to boot the PC, and I typed b –s instead of these options :

1- Solaris Interactive
2- Custom Jumpstart
3- Solaris Interactive Text (Desktop session
4- Solaris Interactive Text (Console session)

Select type of installation: b –s
The output was:


Boot file: kernel/unix
Arguments: -s

/pci@0/pci-ide#if,1---------------------------------------------------------
Short read
* * * * *
* * * * *
* * * * *------------output omitted
* * * * *
* * * * *

Krtld: error during initial load/link phase
Booting kernel/unix……………………
Short raed. 0xffffffff chars read
Not found: core
Not found: slowscan
Not forund:minfree

Krtld: error during initial load/link phase

>

I am doing right thing?

Is the right CD has been used ?

Why I am not receiving "#" prompt instead of ">"?

And I read some case you have to use console to recover password, (cosole similar to cisco router and switch,,,,see this http://www.unix.com/showthread.php?s=&threadid=9488)

Last edited by zillah; 05-22-2005 at 10:56 AM.
 
Old 05-22-2005, 03:22 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You are doing the right thing, but unfortunately are probably hitting some timing bug ...

I think you can overcome that by starting a graphical installation, and while you are under a window manager, launch a console window and do the rest of mounting and /etc/shadow editing the same way as suggested in the links.
Perhaps a text installation can also be stopped (^C), and let you under a root shell to go forward too.
 
Old 05-23-2005, 01:25 AM   #3
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
Quote:
I think you can overcome that by starting a graphical installation, and while you are under a window manager, launch a console window and do the rest
I did what you have suggested, but how can I find what is the real partition for my PC, because I have 2 OSs on Desktop (Manadrake and Solaris), and I have to use this command for mounting:

(( mkdir /tmp/hdrive
mount /dev/dsk/c0t0d0s0 /tmp/hdrive #SCSI; for ATAPI/IDE, omit "t0")) from this site:
http://www.geocities.com/~gregl/htm/s86faq.html ))


A- Which command can I use to find the real controller(c) and the real disk (d) and the slice (s) for my Desktop?


I used :

1- df -k

2- cat /etc/vfstab

They were not helpful.

Last edited by zillah; 05-23-2005 at 01:31 AM.
 
Old 05-23-2005, 05:40 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Try /dev/dsk/c0d0s0 , it is usually a good bet.
 
Old 05-23-2005, 08:42 AM   #5
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
Quote:
Try /dev/dsk/c0d0s0 , it is usually a good bet.
I did , it did not work

Last edited by zillah; 05-23-2005 at 09:02 AM.
 
Old 05-23-2005, 08:48 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
run "format" (/usr/sbin/format), it will show you all the disks available, extrapolate the solaris slice from that. e.g.:
Code:
 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 20314 alt 2 hd 16 sec 63>
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
Specify disk (enter its number): ^C
 
Old 05-23-2005, 09:04 AM   #7
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
Thanks for the quick reply, I will try and let you know
 
Old 05-24-2005, 12:18 PM   #8
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
Thanks jlliagre

I followed your advice and It worked fine.


For my knowledge , could you please tell me why it has been written in many discussion forums this:

(( Next we need to find out where the root partition is mounted, login into the server as a normal user and type: df -k /

Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 241543 195738 21651 91% / )), see this :http://www.computing.net/solaris/www...orum/3345.html

Is this for SPARC Machine only ? Why did not work with me ?
 
Old 05-24-2005, 01:15 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The problem is not related to the CPU architecture (SPARC or x86 or x64).
It would have worked with you too if you had run the "df -k /" while logged in as a non root user on a regular Solaris session.
When you are in installation mode, / isn't mounted to the root slice, it's too soon ...
 
Old 05-24-2005, 04:07 PM   #10
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
Is there any procedure lets me create a second administrator with root previlidge ?
 
Old 05-24-2005, 05:28 PM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I do not support that, my opinion is that there should be not even a single user with root privilege.
Regular accounts should be given partial or full privileges on demand instead, just like with sudo or better with Solaris 10 roles (RBAC).

If you are lazy and don't want to explore these methods, the simplest way is to create an alias of root (same uid = 0), but a different loginname and password.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
root password is lost!!! :( alaios Linux - General 3 11-07-2005 05:48 AM
Lost root password amirdhagopal Suse/Novell 13 02-10-2005 12:09 AM
lost root password papitu76 Mandriva 12 10-31-2004 10:40 AM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 04:08 PM
Lost My root password !!! hitesh_linux Linux - General 33 04-14-2003 08:32 AM


All times are GMT -5. The time now is 11:36 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration