On Tue, Dec 24, 2013 at 9:42 PM, Reco <recovery...@gmail.com> wrote: > Hi. > > On Tue, 24 Dec 2013 13:29:28 +0100 > Ralf Mardorf <ralf.mard...@alice-dsl.net> wrote: > >> This would lead to "Error: cannot open display: :0.0". >> Sure, $ xhost +; sudo -u [...] does the trick, > > No, if you do it smart way, such as (in .xsessionrc): > > xauth extract - $DISPLAY | sudo -u user1 -- sh -c \ > "cat -> /home/user1/.Xauthority" > xauth extract - $DISPLAY | sudo -u user2 -- sh -c \ > "cat -> /home/user1/.Xauthority" > > And configure sudo to keep $DISPLAY. > [...]
I'm using "xhost" to do something similar, maybe the same thing? I described it a couple of years ago: http://reiisi.blogspot.jp/2011/08/simple-sandbox-for-firefox.html I'd be interested in comments. -- Joel Rees Be careful where you see conspiracy. Look first in your own heart. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/caar43iohtijp_3vjwp+xupxp+ybt1gdl+18v9u4wrjrbtfq...@mail.gmail.com