>Subject: root password forget
>Date: 11/17/03 10:18 PM Hawaiian Standard Time
>Dears,
>I am using Sun Enterprises E250 Server.
>I forget my root password. But the the same time .
>Before i change the password, i have the backup copy of
>passwd and shadow files (through ufsdump commmand) on
>Tap drive. But now i restart the server .
>Once i shall try to go single user mode to restore the above file
>it asks the root password..
>How will be i restore my old passwd and shadow files ?
>Any give any good ideas or steps please
Hopefully you still have the installation CD's. That will make things much,
much easier.
Get to the OK prompt and place the Solaris software 1 of 2 disc into the CDROM.
THen boot -s cdrom.
This will boot the operating system from the CD-ROM.
You can then make a directory /a
Then you can mount the "/" partition of your system:
mount -o rw /dev/dsk/c0t0d0s0 /a
(I assume / correspsonds to /dev/dsk/c0t0d0s0 on your system)
You can then edit your passwd file:
vi /a/etc/passwd
and then delete the encrypted password.
Eject your cdrom and reboot.
Login as root and change the password immediately.
Stuart
Dr. Stuart A. Weinstein
Ewa Beach Institute of Tectonics
"To err is human, but to really foul things up
requires a creationist"