did you set a root password? if yes the you should be ok. just login as root and undo the mistake. or you should be able to fix it by booting into the system in rescue mode. -- super