suxterm

wrapper around su which will transfer your X credentials

Debian Debian
RUN apt-get update && \ apt-get install -y sux
Raspbian
RUN apt-get update && \ apt-get install -y sux
click the source code to copy install suxterm on any operating system with command-not-found.com