hi - the root password has been lost on a fairly important box in my company. i have tried to chagne as per below method but cant - it mentions the file is read only. am i missing something?
When you boot from the CD, select the option for the Sigle-user mode (Option 6 on Solaris 10 CD)
This will look for the currently installed Solaris OS on your system and prompts a Yes/No question to mount the Root filesystem as a Read/Write file system onto /a.
Select yes to mount the root file system (/dev/dsk/c0t0d0s0 here) on /a. If you select No, no harm as you still can mount it manually using:
mount /dev/dsk/c0t0d0s0 /a
NOTE: /a is a temporary mount point that is available when you boot from CD or a JumpStart server
Now, with the root file system mounted on /a. All you need to do is to edit the shadow file and remove the encrypted password for root.
# vi /a/etc/shadow
Now, exit the mounted filesysten, unmount the root filesystem and reboot the system to single-user mode booting of the disk.
# cd /
# umount /a
# init s