Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Part of my password contains numbers and uppercase letters. How can I know that I am correctly typing my password in a terminal when invoking sudo?

I am not very computer literate, so I would appreciate a simple explanation.

share|improve this question
1  
While you are typing the password, you can't tell if you are correctly typing your password. Once you hit return if the password is wrong sudo will tell you to try again and if it is correct the command will execute. Hope that helps. –  nikhil Dec 12 '12 at 19:40

3 Answers 3

If you are using sudo for some GUI programs, you can try gksudo which gives you a GUI to enter password, which atleast shows how much characters you have typed, just like any other password field.

share|improve this answer
    
Interesting - have not heart of it before. However not only gui programs can be launched with gksudo - tested on ls in terminal. –  Pavel A Dec 12 '12 at 19:22

Having numbers and upper-case characters, or any other ASCII character for that matter, has no bearing whatsoever on whether or not sudo will be able to handle your password. If you can type it on your keyboard, you can use it in your password.

The only practical difference between the sudo password prompt and a normal terminal session is that you can't see what you're typing with sudo.

share|improve this answer

Changing case and adding numbers or other characters makes a password much more secure. While it requires more care when entering it is done in exactly the same way as you enter it anywhere else in the system: using the shift key to enter capitals or special characters as required.

Terminal and most text-based password verifiers will not echo any keystrokes however, and this causes some confusion. Just type the password as would normally with no errors and press enter. Nothing whatsoever will appear on the screen while you are doing this.

share|improve this answer

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.