Are you using live mode or is it installed? If you installed Ubuntu, then you provided the password and the user name at installation. You need to use the same for logging to command prompt.
The password is already set. But while installing you also set it to log in automatically and not ask for password. You should change the behaviour in the gdm configuration.
If your Ubuntu is 10.10, you can change the behaviour from, System > Administration > Login screen.