unable to log into gdm, urgent help needed!!!pls

Hi all,

I was playing around with some scripts and spoilt solaris completely ..
So i reinstalled and thought of giving the password once i log in...
However i forgot all about it and went ahead installing all my drivers and particularly KDE 3.5.8 on my system..
But for kde to show up at the login interface ,i did this...
#svcadm disable cde-login
(I was dropped to the console mode, then)
#svcadm enable gdm;exit 0

this took me to the gdm where i was able to select kde ,however when i tried loggin in as root...
it asked me for the password..(which i have not given as yet)
i know it was a mistake but , i suppose gdm needs that i give a passwd for my login ....

is there a way that i can log into kde or gnome?(unable to log into any desktop envi)
can i run some command at the start itself(where the boot options are specified) so that i can have access to cde-login ,or any other way??:confused:
its kinda urgent, pls help.. (am using S10,b-79a)

thanks