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

In 11.10 I used 'gdmflexiserver -xnest' to switch users without logging out however I think gdm has now been completely removed.

I'm trying to bind a keyboard shortcut to do the equivalent of 'Me Menu>Switch User Account...'.

How can I invoke a user switch in 12.04?

share|improve this question
up vote 18 down vote accepted

gdmflexiserver as a legacy option to provide the greeter switcher service during the transition between GDM and LightDM.

This has now been dropped from 12.04.

The replacement command is:

dm-tool switch-to-greeter

Other useful dm-tool options (dm-tool --help):

enter image description here

share|improve this answer
Perfect, thankyou! – edm Mar 10 '12 at 18:02
unlike the me menu dm-tool swich-to-greeter doesn't lock session you just left. – ijk Mar 17 '12 at 16:24

You can have several users logged in at the same time and switch between them with alt+ctrl+F1-8. That doesn't allow you to have another x server in a window. By the way; GDM has not been removed. It's just not used by default. You can easily install it:

share|improve this answer
I really dont think that is what the user is asking here. – Bruno Pereira Mar 8 '12 at 11:11
My fault, I updated the question to make it clearer what Im trying to achieve. I know GDM is still available but most of the functionality is being moved to lightDM. In 11.10, the GDM command 'gdmflexiserver -xnest' would start another x server using the LightDM protocol allowing a user to log in using the GUI. But now GDM is not installed by default so there must be a replacement command that does the same but is lightdm native. – edm Mar 8 '12 at 11:17
You can use ctrl+alt+F7 and ctrl+alt+F8 to switch between two logged in users when they are already logged in. – Jo-Erlend Schinstad Mar 8 '12 at 16:27

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.