I can't set you straight, and I don't know the security implications, but this works: ssh -X user@remote-host su-to-root -X -c <command> You might be asked for the root password, the user password or neither, depending on your setup. Greg On 08/06/2011 07:40 PM, Theodore Ruegsegger wrote:
Hmm...my diagnosis was flawed. I had written:
It looks like the newer version of sudo no longer preserves $HOME by default...
It looks like the older version didn't preserve $HOME either; instead it somehow preserved the .Xauthority information itself. As the manpage implies, forcing it to preserve $HOME could have some security implications. If someone knows of a more straightforward solution, please share!
Ted Ruegsegger _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug