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've got 11.10 on a desktop machine with two users. Both users have "Password" set to "Not asked on login" in Users Settings. At startup, either user can log in without a password. But once both users are logged in, it takes a password to switch between users.

In previous Ubuntus, you could override this by setting /desktop/gnome/lockdown/disable_lock_screen to True in gconf-editor. That is ignored in the Gnome 3 / Unity era.

Does anyone know a way to disable the password prompt when switching between users in Oneiric?

share|improve this question

Only this worked out for me:

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

This disables screen lock on user switch and hibernation wakeup.

PS: gsettings has to be configured for every user seperately.

share|improve this answer
Of the various answers, this is the only one that worked (12.04). Even Users and Groups (gnome-system-tools) couldn't do this. (It allows the setting, but has no effect.) Thanks for posting. – u2n Aug 27 '15 at 13:19

Run this command:

sudo visudo

Then, at the end add this line:

user   ALL=(ALL) NOPASSWD: /bin/su

This will disable the password check for the "su" command for the specified user.


share|improve this answer
This doesn't work for me. Still password prompt. However, if you choose "Switch User Account" instead, and then select another user from the startup screen, then you gen logged in without password prompt. What is my problem? – Dziamid Apr 11 '12 at 20:29

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.