Re: X11-forwarding after su



Helmut Jarausch schrieb:
I just want to drop root privileges and then invoke an X application.

well as root you could

cp ~/.Xauthority /home/<YourLogin>/.Xauthority.root

chown <YourLogin> .Xauthority.root

su - <YourLogin>

DISPLAY=localhost:10.0 XAUTHORITY=/home/<YourLogin>/.Xauthority.root\ xeyes

I am not sure, if this is a good idea because you make the contents of
roots .Xauthority available to <YourLogin>.


Helmut.

Wolfgang
.



Relevant Pages