On Sun, Mar 15, 2015 at 07:12:23PM -0400, Ted Unangst wrote: > luke...@onemodel.org wrote: > > The goal: I'd like to run multiple simultaneous X sessions and switch > > among them with Ctrl-Alt-F8, Ctrl-Alt-F9, etc, each one as a different > > user (separation of privileges, like general browsing vs. admin & > > programming, vs. banking, etc, so that if one is compromised by a > > browser flaw etc, the other user accounts are unaffected. > > I would probably start with Xnest here.
I've had better luck with a slightly hacked up Xephyr for this purpose. Just be aware that screen locking at the top level won't work while nested sessions grabbed exclusive focus (unless you patch it to work differently), and window resizing can be annoying at times. Be sure to actually isolate the different X server processes across different users and such and preferably chroot them and tell pf to block everything for those users. It's annoying and probably doesn't really gain you much anyway.