The every day things from Thalamus' life.

Thalamus' Blog

22 July, 2016

xauth and sudo

Filed under: ComputerStuff_en — Thalamus @ 12:22

A tip that can be useful if you need to run as root an X11 app and you get auth error messages is ‘X11 connection rejected because of wrong authentication’ is to use xauth and .Xauthority to resolve the problem.

client $ ssh user@host
server $ sudo su
server # xauth merge /home/user/.Xauthority
server # /path/to/app &

• • •