Re: jessie: unable to run remote graphical program with sudo [SOLVED]

2015-06-02 Thread Stephen Allen
On Wed, May 27, 2015 at 08:15:23AM -0600, D. R. Evans wrote: > David Wright wrote on 05/26/2015 05:35 PM: > > >>> If I understand you correctly, I think that you are saying that: > >>> n7dr@shack:~$ AUTHORITY=/home/n7dr/.Xauthority HOME=/root sudo -E xterm > >> > >> I probably misunderstood you.

Re: jessie: unable to run remote graphical program with sudo [SOLVED]

2015-05-27 Thread D. R. Evans
David Wright wrote on 05/26/2015 05:35 PM: >>> If I understand you correctly, I think that you are saying that: >>> n7dr@shack:~$ AUTHORITY=/home/n7dr/.Xauthority HOME=/root sudo -E xterm >> >> I probably misunderstood you. > > No, but you left out the X in XAUTHORITY. I'm glad that one of us

Re: jessie: unable to run remote graphical program with sudo

2015-05-27 Thread Virgo Pärna
On Tue, 26 May 2015 13:43:57 -0600, D. R. Evans wrote: > > If I log in as a normal user over ssh, I can run X programs fine. (For > example, typing "xterm" brings up the expected terminal.) > > However, if I execute "sudo xterm", then I receive the message: > > X11 connection rejected because of w

Re: jessie: unable to run remote graphical program with sudo

2015-05-27 Thread Reco
On Tue, May 26, 2015 at 02:58:47PM -0600, D. R. Evans wrote: > Reco wrote on 05/26/2015 01:53 PM: > > > > > Yet there's a way to solve your problem - get a habit of running > > X clients like this: > > > > HOME=/root sudo -E xterm > > > > Re-defining $HOME is crucial as otherwise you risk users

Re: jessie: unable to run remote graphical program with sudo [SOLVED]

2015-05-26 Thread Carl Johnson
"D. R. Evans" writes: > D. R. Evans wrote on 05/26/2015 04:52 PM: > >> >> If I understand you correctly, I think that you are saying that: >> n7dr@shack:~$ AUTHORITY=/home/n7dr/.Xauthority HOME=/root sudo -E xterm > > I probably misunderstood you. > > Anyway, after some more experimenting, I d

Re: jessie: unable to run remote graphical program with sudo [SOLVED]

2015-05-26 Thread David Wright
Quoting D. R. Evans (doc.ev...@gmail.com): > D. R. Evans wrote on 05/26/2015 04:52 PM: > > > > > If I understand you correctly, I think that you are saying that: > > n7dr@shack:~$ AUTHORITY=/home/n7dr/.Xauthority HOME=/root sudo -E xterm > > I probably misunderstood you. No, but you left out

Re: jessie: unable to run remote graphical program with sudo [SOLVED]

2015-05-26 Thread D. R. Evans
D. R. Evans wrote on 05/26/2015 04:52 PM: > > If I understand you correctly, I think that you are saying that: > n7dr@shack:~$ AUTHORITY=/home/n7dr/.Xauthority HOME=/root sudo -E xterm I probably misunderstood you. Anyway, after some more experimenting, I discovered that this works: sudo XAU

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread Lisi Reisz
On Tuesday 26 May 2015 23:52:38 D. R. Evans wrote: > David Wright wrote on 05/26/2015 04:16 PM: > > When I ssh to a remote machine as myself, DISPLAY is set to > > localhost:10.0 (11, 12, etc) and AIUI X clients find my local X server > > through the encrypted ssh connection. Because the authority

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread D. R. Evans
David Wright wrote on 05/26/2015 04:16 PM: > When I ssh to a remote machine as myself, DISPLAY is set to localhost:10.0 > (11, 12, etc) and AIUI X clients find my local X server through the > encrypted ssh connection. Because the authority file on the remote > host is in its standard location, nam

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread David Wright
Quoting D. R. Evans (doc.ev...@gmail.com): > Reco wrote on 05/26/2015 01:53 PM: > > Yet there's a way to solve your problem - get a habit of running > > X clients like this: > > > > HOME=/root sudo -E xterm > > > > Re-defining $HOME is crucial as otherwise you risk users' rewriting > > configurat

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread Lisi Reisz
On Tuesday 26 May 2015 23:01:41 D. R. Evans wrote: > Lisi Reisz wrote on 05/26/2015 02:30 PM: > > On Tuesday 26 May 2015 20:43:57 D. R. Evans wrote: > >> What is wrong and how do I fix it so that I can run graphical programs > >> across the network using sudo? > >> > >> I'm sure it's just a simple

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread D. R. Evans
Lisi Reisz wrote on 05/26/2015 02:30 PM: > On Tuesday 26 May 2015 20:43:57 D. R. Evans wrote: >> What is wrong and how do I fix it so that I can run graphical programs >> across the network using sudo? >> >> I'm sure it's just a simple configuration issue, but my google-fu seems to >> be lacking to

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread Lisi Reisz
On Tuesday 26 May 2015 22:47:22 D. R. Evans wrote: > Lisi Reisz wrote on 05/26/2015 03:06 PM: > > When you installed, did you install with root? > > I'm sorry, I don't understand the question. > > But: > > n7dr@shack:~$ pwd > /home/n7dr > n7dr@shack:~$ su > Password: > root@shack:/home/n7dr# pwd >

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread D. R. Evans
Lisi Reisz wrote on 05/26/2015 03:06 PM: > When you installed, did you install with root? > I'm sorry, I don't understand the question. But: n7dr@shack:~$ pwd /home/n7dr n7dr@shack:~$ su Password: root@shack:/home/n7dr# pwd /home/n7dr root@shack:/home/n7dr# cd root@shack:~# pwd /root root@shac

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread Lisi Reisz
On Tuesday 26 May 2015 21:58:47 D. R. Evans wrote: > Reco wrote on 05/26/2015 01:53 PM: > > Yet there's a way to solve your problem - get a habit of running > > X clients like this: > > > > HOME=/root sudo -E xterm > > > > Re-defining $HOME is crucial as otherwise you risk users' rewriting > > conf

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread D. R. Evans
Reco wrote on 05/26/2015 01:53 PM: > > Yet there's a way to solve your problem - get a habit of running > X clients like this: > > HOME=/root sudo -E xterm > > Re-defining $HOME is crucial as otherwise you risk users' rewriting > configuration files by root. Are you saying that if I type: HO

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread Lisi Reisz
On Tuesday 26 May 2015 20:43:57 D. R. Evans wrote: > What is wrong and how do I fix it so that I can run graphical programs > across the network using sudo? > > I'm sure it's just a simple configuration issue, but my google-fu seems to > be lacking today. By default one cannot log into a graphical

Re: jessie: unable to run remote graphical program with sudo

2015-05-26 Thread Reco
Hi. On Tue, May 26, 2015 at 01:43:57PM -0600, D. R. Evans wrote: > I have just installed stable (jessie) on a machine that used to run Kubuntu. > This machine is mostly accessed remotely, using ssh. > > If I log in as a normal user over ssh, I can run X programs fine. (For > example, typing "xte

jessie: unable to run remote graphical program with sudo

2015-05-26 Thread D. R. Evans
I have just installed stable (jessie) on a machine that used to run Kubuntu. This machine is mostly accessed remotely, using ssh. If I log in as a normal user over ssh, I can run X programs fine. (For example, typing "xterm" brings up the expected terminal.) However, if I execute "sudo xterm", th