Summary: After upgrade from Lenny to Squeeze, I can no longer execute X apps using sudo in an ssh session. Why not, and how can I restore this ability? Details: I just got around to upgrading [1] a server to from Debian Lenny to Debian Squeeze. Normally I access it via ssh with X forwarding so that I can display any X apps on my workstation [2]. I have root logins disabled and use sudo instead when I wish to run an app as root. Under Lenny, I could execute X apps under sudo and they would display just fine, for example: sudo xless some-file [prompts for my password] [xless opens in a window on my workstation] Under Squeeze, the attempt fails with an error message: sudo xless some-file [prompts for my password] X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0 Googling "X forwarding sudo" gives me lots of explanations about .Xauthority and cookies but nothing that explains why I should now need to manage this myself when I didn't need to before. Can anyone set me straight? Ted Ruegsegger __________________________ Notes: [1] More precisely, I didn't dist-upgrade it (that's another story) but installed Squeeze from scratch, preserving the /home partition and repeating my original configuration steps. [2] This server doesn't run a GUI desktop.