On Tue, May 26, 2015 at 02:58:47PM -0600, D. R. Evans wrote: > Reco wrote on 05/26/2015 01:53 PM: > > > > > Yet there's a way to solve your problem - get a habit of running > > X clients like this: > > > > HOME=/root sudo -E xterm > > > > Re-defining $HOME is crucial as otherwise you risk users' rewriting > > configuration files by root. > > Are you saying that if I type: > HOME=/root sudo -E xterm > xterm should run? > > What actually happens is that I still get the same error: > > n7dr@shack:~$ HOME=/root sudo -E xterm > X11 connection rejected because of wrong authentication. > etc.
Oh, my mistake. Sorry. I forgot that ssh -X does not define $XAUTHORITY explicitly. It works this way: XAUTHORITY=$HOME/.Xauthority HOME=/root sudo -E xterm Reco -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150527070455.GA19249@x101h