- connect on the server with X11 forwarding: ```ssh -X login@server```
- get your auth with: ```xauth list $DISPLAY```. It should print something like ```server.oca.eu/unix:12 MIT-MAGIC-COOKIE-1 59a66b85301af8631b9504c34c10fb91```
- get your DSIPLAY envvar with: ```echo $DISPLAY```. It should print something like ```localhost:12.0```
- impersonate the user by using: ```sudo su - username```
- once you are the user, get back the xauth and DISPLAUY: ```xauth add server.oca.eu/unix:12 MIT-MAGIC-COOKIE-1 59a66b85301af8631b9504c34c10fb91 ; export DISPLAY=localhost:12.0```
You should be able to run graphical apps but with the user's environment.