Solaris Box: resetting root pass

I'm a newbie on Solaris or Sun System. We need to reset root password for a sun box. I found lots of good document for this. But I cant even get step 1 , here it is:

Press Stop-A on the console or Ctrl-] and send brk from a remote console connection to access the Open Boot Prompt (OBP).

So basically when system restart I hold "Stop" key and "A", am i doing something wrong?
what is "-" mean here.. also what a weird keyboard ..
Help me guys..
shahednyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yuzhCommented:
In normal condition, to change the root password, you need to login as root,

then  try in:
passwd
command to change the password.
man passwd
to learn more details.

If you forgot the root password, follow the instruction in the following page and fix it:
http:Q_20723194.html
0
shahednyAuthor Commented:
I am trying to reset the root password, prblem is I cant even go to command propt, it shows me interface window where I must put username and then password.
0
yuzhCommented:
If you know the root password, just login as root and then change the passwd.

if you don't know the root password, you need to use Solaris Software CD to boot up
the box into single use mode:
type in:
<Stop> A
put the Solaris Software CD  into the CD drive, then try in:

boot cdrom -s
mount /dev/dsk/c0t0d0s0 /a                #assume you root partion is /dev/dsk/c0t0d0s0
TERM=sun
export TERM
vi /a/etc/passwd
  you will see a line like this:
     root:x:0:1:Super-User:/root:/sbin/sh
            ^
      delete this "x" and save the change. you'll have no passwd for root.


 see the link in my previous comment.

PS: if you don't know how to use "vi" editor,  then ask someone know how to use vi to
      do it for you.

Good luck!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

shahednyAuthor Commented:
man I cant even go to single mood, I put solaris CD and reboot the box it goes to login screen. I just like to do I have hold a key so it will boot from CD? Like windows machine we do
0
yuzhCommented:
No worries, read my previous comments carefully.

type in "<Stop> A" to goto ok prompt.

put the Solaris CD into the cdrom, then type in:
boot cdrom -s

then follow the instruction in my previous comment to do the job.
0
shahednyAuthor Commented:
thanks. I am up to this :
mount /dev/dsk/c0t0d0s0 /tmp/mnt

it says: The state of mount /dev/dsk/c0t0d0s0  is not okay and it was attepted to be mounted read/write
mount: please run fsk and try again
0
yuzhCommented:
type in:

fsck -y /dev/rdsk/c0t0d0s0  

wait till it finish, then:
mount /dev/dsk/c0t0d0s0  /mnt
0
shahednyAuthor Commented:
ok I am here now, trying to edit passwd using vi editor but it says: "read only" so I cant actually write anything on it
how can I write it
0
yuzhCommented:
vi /mnt/etc/passwd

make the change then, type in:
<Esc>:wq!

the shutdown the box:
sync
halt

take the CD out of the CD drive, then type in:
boot
after system boot up, login as root (no passwd at this time, just type in <enter>)
then type:
passwd
to reset the root password.

Time out go now, good night and good luck!
0
shahednyAuthor Commented:
ok thanks for your help now. I have done it wow !!

I'm adding 100 extra point for this question:
This solaris server I took it out from our data server and it had an static Ip address. Now its sitting locally at my home, I dont have an static Ip but I want to assign a local ip adress like 192.168.0.100 , how do I do that? I saw some questions here and tried all those but getting error, help me out
0
shahednyAuthor Commented:
I got this working also, so many posting on the site about this
0
MtnNtwksCommented:
man ifconfig

The man pages are very clear on this subject and will show you how to change your ip address.

0
MtnNtwksCommented:
Sorry, I'm still relatively new to EE.  I thought the question was reopened based on the statement made by the author about adding points.
0
yuzhCommented:
Hi MtnNtwks,

    No worries!, see http:#12677196

    Have a nice day!

    yuzh
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.