I've lost my root password. I already booted from CD, mounted slash and
changed /etc/shadow so there is no encrypted password for root, but this is
not working. When the machine reboots, shadow file is restored somehow. The
machine uses Solstice DiskSuite. It's an Ultra 2 running Solaris 2.6.
Filesystems are separated into...
In a nutshell my procedure was...
OK boot cdrom -sw
mount /dev/dsk/c0t0d0s0 /a (this results in error so have to do fsck)
(Answer yes to many fixes)
mount /dev/dsk/c0t0d0s0 /a
(attempt to open shadow with vi which results in core dump every time :( )
cat >> abc
(paste new shadow file from other terminal) (I'm doing this through a
terminal that runs to the serial port of the machine in question. machine is
cp shadow shadow.orig
mv abc shadow
# init 6
From here the machine reboots and it does some more files checking. This
leads me to believe that Solstice Disk Suite has something to do with it
because when I mount the file system after booting from CD, I mount it using
/dev/dsk/c0t0d0s0 instead of /dev/md/dsk/d1 .... which I can't use because
obviously booting from CD does not load drivers for Disk Suite. My guess is
that when it reboots and does the fsck'ing, it re-writes the shadow file...
but I'm just grasping at straws.
Any help would be appreciated.