SUMMARY: Forgot Root Password on Solaris 2.4

From: David Allan Finch (
Date: Tue Oct 18 1994 - 16:28:30 CDT


        A big harty thanks to everyone that replied:

        "Robert D. Worsham" <>
        Danny Barron <>
        "John A. Lauro" <>
        Jun Wu <>
        Bonnie Lucas <>
        Michael Kline <>
        "Michael (M.A.) Meystel" <>
        Casper Dik <>


        How do I delete my root password when I forget it?

ANSWER ( derived from "Michael (M.A.) Meystel"'s answer which
         was the most complete, but must people had the
         relevent points)

        1) at boot prompt type

                        ok> boot cdrom -s

        2) mount your / slice

                        # mount /dev/dsk/c0t3d0s0 /mnt

        3) edit and delete the root password

                        # vi /mnt/etc/shadow

                NOTE this is the second field, remove the contents

        4) restart the system

                        # halt


        I saw NP in the second field of the /etc/shadow file
        and assumed (yes, ass of you and me ;-) that this
        meant No Password. NP must be the same as * in the
        old passwd file (ie only root can su to)

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:12 CDT