Re: X authentication and su (Re: changing framebuffer device owner during login)
On Wed, Jun 20, 2001 at 02:59:56PM -0700, Francois Gouget wrote:
|| On Tue, 19 Jun 2001, Jochen Voss wrote:
|| [...]
|| > I use a tiny script for this purpose: I just call "xgive",
|| > which is
|| >
|| > #! /bin/sh
|| > echo "export DISPLAY=\"$DISPLAY\""
|| > echo "echo `xauth nextract - $DISPLAY` | xauth nmerge -"
|| >
|| > It outputs something like
|| >
|| > export DISPLAY=":0.0"
|| > echo 0100 0007 ... | xauth nmerge -
|| >
|| > These two commands I cut and paste into another user's xterm,
|| > to give him access to the display.
||
|| It would be sweet to have something that does all this automatically.
|| 'su -X - foo' for instance, kind of like 'ssh -X -l foo hostname' but
|| without the encryption and forwarding overhead...
I think the Remote X Apps mini-HOWTO describes just the script you need.
Ciao. Vincent.
Reply to: