Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 want to restrict different users to different sets of window managers. For example,

  • user A: openbox, fluxbox

  • user B: openbox

  • user C: openbox, fluxbox, metacity

How can I do it?

Additional info: running debian 6 (squeeze).
I'd like to keep gdm too, but if it's not possible I will remove it.

share|improve this question
Generally you could use the ~.xinitrc file for each user, but if you want to restrict it - then you may need to have the global one (I think in /etc/X11/xinit/xinitrc) check which user it is (bash syntax) and execute accordingly. Though, technically a user would still be able to make a local one that would override that. (I'm not on my computer to check for config files to ignore user defined) – nerdwaller May 18 '13 at 13:18
up vote 2 down vote accepted

Remove the world execute permissions from the relevant programs in /usr/bin, then re-add them to specific users using either groups or ACLs.

Unfortunately, you cannot make gdm show different session lists for different users – it's still going to show Fluxbox and Metacity for everyone.

share|improve this answer
for the time being, i'd remove gdm altogether, but getting gdm to show only available options would have been great. Based on the user-id entered, if gdm shows only the available WM options it would be great. – Tem Pora May 18 '13 at 14:56

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.