Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just noticed that when I'm prompted to enter my password to unlock the system, no matter what layout I choose (Persian or English) as long as I press same buttons that resembles my password in US layout it lets me in.

For example if my password is salam and I enter سشمشپ it will let me in.

But when I sudo something I should enter password in correct layout.

The question is which part of the OS is responsible for this? And is it really a feature or a bug?

share|improve this question
up vote 1 down vote accepted

Since sudo requires the correct layout, I suppose that the feature must be provided by the GUI. A very handy one, if you ask me. -- So, this is not really the OS but perhaps the window manager or the login screen?

More interesting is if this also works the other way round: Give yourself a Persian password, login with an active US keyboard layout and see if the system lets you in.

share|improve this answer
Persian password blocked me out of my own use. It seems that lock screen GUI just ignores layout. – Arash Badie Modiri Feb 19 '12 at 8:44
Can you log in from the login screen? – krlmlr Feb 20 '12 at 9:44

Your Answer


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.