From: Tim Chase <[EMAIL PROTECTED]>
Subject: Re: Cut'n'Paste via "*p and different users
Date: Wed, 25 Oct 2006 08:19:29 -0500

>  >  I was wondering, whether the clipboard-problem is caused
>  >  by some (possible wrong) settings of my system or a
>  >  normal behaviour of X/mrxvt and whether there are tricks
>  >  to make the clibboard working "inter-user-al" :) ... it
>  >  is so cool to use "*p !!!
> 
> 
> The following information is 100% untested, but my
> understanding is that the X server has to be authorized (via
> the "MIT Magic Cookie") to accept connections from clients.
> 
> Quoting directly from Loren M. Lang's post (found at 
> http://groups.google.com/group/mailing.freebsd.questions/browse_thread/thread/dc2159c366eb9064/e9001ce2abaec9d3?lnk=st&q=run+x+application+as+different+user&rnum=4#e9001ce2abaec9d3
>  
> 
> 
> sorry for the long link)

<snipped but never forgotten! :) >
 
> 
> My guess is that, as root, you want to try something like
> 
> XAUTHORITY=/home/user/.Xauthority gvim file1.txt
> 
> The old-school way of doing this was to tinker with xhost to 
> allow a whole host (rather than a particular user) to connect to 
> the X server.
> 
> The aim is to allow your alternate user (root in this case) 
> permission to connect to the X server so that it can access the 
> clipboard(s).  My understanding is that the keys found in the 
> .Xauthority file are the way to do this...that the alternate user 
> has to have the key.
> 
> Or I could be talking bunk. YMMV :)
> 
> -tim
> 
Hi Tim !

 thanks a lot for that ! Simply: IT WORKS!
 
 Keep hacking!
 mcc


Reply via email to