Problem with X tunneling, su, and xauth

Scott Omar Burch scott.burch at camberwind.com
Wed May 19 07:17:40 EST 2004


Jim,

The su'd to user does not have authority to your X display. You should 
use sudo, but to get to work your way:

1) From the user account that is doing the su'ing find out what it's 
display is set to and grab the output of xauth list (You want the ouput 
that matches the current display).
2) Su to the user and set your diplay to that of the original user.
3) xauth add [the output you grabbed from 1) ]

If you use sudo then you don't need to do any of this.



Jim Knoble wrote:
> Circa 2004-05-18 12:51:58 -0700 dixit Lets Go Canes:
> 
> : The su'd user doesn't seem to be able to authenticate properly to use
> : the X-tunnel.
> 
>   [...]
> 
> : Am I overlooking something obvious?
> 
> (4) Use sudo instead of su.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev




More information about the openssh-unix-dev mailing list