INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

E-mail*
Handle

Password
Verify P'word
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Member Feedback

"...Congratulations on a brilliant idea and a great site..."

Geography

Where in the world do Tek-Tips members come from?

Administration

I've forgotten/lost the root password
Posted: 12 Feb 02 (Edited 2 Nov 05)

Load the Solaris cdrom (This does not have to be the same Solaris version as the machine.)

Take the machine down to the PROM level -
# init 0 (or halt)

When it comes down to the OK prompt -
OK boot cdrom -s

When it is back up -
# mount /dev/dsk/c0t0d0s0  /a (your root device/partition)
# fsck /dev/dsk/c0t0d0s0  (optional, if you can't mount disk)
# cd /a/etc
# TERM=vt100;export TERM
# vi shadow and remove second field on root line

The root line should like -
root::12345::::::  (it must start root:: the other values are not important)

wq! (or x!)
init 6 (or reboot)

When the machine comes back up -
passwd (set a new root password)

Steve

Back to Sun: Solaris FAQ Index
Back to Sun: Solaris Forum
My FAQ Archive
Email This FAQ To A Friend

My Archive