I have pressed the keyboard combination Ctrl+Alt+F1, because I wanted to see the output of my commands as they were being executed, but I got the following error: incorrect login.

share|improve this question
    
Possible duplicate of: Cannot login to any TTYs - Wrong password – Zaz Jun 4 '15 at 18:20
    
In my case this was caused by my login shell (/bin/zsh) not being listed in /etc/shells. – Zaz Jun 4 '15 at 18:38

The most common cause of this error is simply typing your password wrong. The keymap in the console is often subtly different from the one in X.

Make sure you're typing the correct password by first typing it in the login field where you can see if it's being written as expected.


Another thing that will cause this exact same error message is if your login shell is not listed in /etc/shells. Find which shell you're using by searching for your username in /etc/passwd:

grep "dave" /etc/passwd

(replacing dave with your username) you should see something like this:

dave:x:1000:1000::/home/dave:/bin/zsh

The last field (/bin/zsh) is your shell. Let's search for it in /etc/shells:

grep "/bin/zsh" /etc/shells

We should see something like this:

/bin/zsh
/usr/bin/zsh

But if you don't, that's what the problem is. Try re-installing zsh (or whatever shell is missing from /etc/shells), and if that doesn't work, add it manually:

echo `/bin/zsh` | sudo tee /etc/shells

(we use tee because > redirection doesn't work with sudo)

share|improve this answer
    
In addition, no feedback. GUI entry field feeds back you with stars or bullets. TTY login will not echo it and you have to enter correctly (although, Backspace works correctly) – Erkin Alp Güney Jul 1 '17 at 15:02

I solved that issue typing the numbers of my password not withe the right-side number keypad, but with the number keys that are over the letters.

share|improve this answer
    
Correct. To login with ctrl+alt+f1, use numbers keys above alphabets keys. not numpad keys – chandresh Feb 1 '16 at 4:12

Ctrl+Alt+F1 is the first virtual console provided by the getty/agetty programs, sometimes called tty1.

To login there you must to use your Ubuntu user name and the password associated with this user name. If you provide these simple informations correct, you will never see again that error.

share|improve this answer

Check Number Lock And Caps Lock

And You can try this too

Open the Terminal Application And Enter Following Code

sudo dpkg-reconfigure console-setup 

And choose the right layout there.

share|improve this answer
    
and this will ask for password again sir!! – adil Jul 16 '15 at 8:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.