X11 connection rejected because of wrong authentication after sudo to another user
“su” with error “X11 connection rejected because of wrong authentication”
$ xauth list | grep unix`echo $DISPLAY | cut -c10-12` > /tmp/xauth $ sudo -s # xauth add `cat /tmp/xauth`