You need to boot the system with CDROM and enter maintainance mode and do the following.
you should "boot cdrom -s"
then in the maintenance mode, mount /dev/dsk/cxtxdxs0 /a
vi /a/etc/shadow -> Change the shell of the root user to /bin/sh.
reboot the system
I guess it should work fine...