[Novalug] ssh X display privledged app

Aaron M. Ucko amu@alum.mit.edu
Sat Nov 26 21:35:13 EST 2016


You can also try explicitly setting the environment variable XAUTHORITY
to $HOME/.Xauthority, as applications running as root will otherwise try
to look in /root/.Xauthority by default.

-- Aaron Ucko

greg pryzby via Novalug <novalug@firemountain.net> writes:

> Ah. I think I have ssh as user then ssh -X root@localhost and that worked.
> But xauth add is better
>
> On Sat, Nov 26, 2016, 8:04 AM William Sutton <william@trilug.org> wrote:
>
>> Sounds like he's ssh -X or -Y 'ing as one user and sudo'ing to root to run
>> gparted, in which case he probably wants to do xauth add.
>>
>> See http://www.snapdba.com/2013/02/ssh-x-11-forwarding-and-magic-cookies/
>> for example.
>>
>> William Sutton
>>
>> On Sat, 26 Nov 2016, greg pryzby via Novalug wrote:
>>
>> > West is the error?
>> >   ssh -X user@host gparted
>> > Works for me
>> >
>> > You may need the xorg-x11-xauth package
>> >
>> > On Sat, Nov 26, 2016, 5:23 AM Jon LaBadie via Novalug <
>> > novalug@firemountain.net> wrote:
>> >
>> >> Sometimes when ssh'ed on to a remote system I'll want to
>> >> run a gui app as root for display on the local screen.
>> >> The current example is gparted.  But it fails with
>> >> access to the local screen denied.
>> >>
>> >> I use ssh's -Y (and tried -X) option.  And I have
>> >> tried to disable access restrictions with xhosts
>> >> or specifically allowing the remote root.
>> >>
>> >> What is the correct incantation to allow remote
>> >> root access to my local X display?
>> >>
>> >> jon
>> >> --
>> >> Jon H. LaBadie                  novalugml@jgcomp.com
>> >>  11226 South Shore Rd           (703) 787-0688 (H)
>> >>  Reston, VA  20190              (703) 935-6720 (C)
>> >> **********************************************************************
>> >> The Novalug mailing list is hosted by firemountain.net.
>> >>
>> >> To unsubscribe or change delivery options:
>> >> http://www.firemountain.net/mailman/listinfo/novalug
>> >>
>> > --
>> >
>> > greg pryzby
>> > SOCIAL MEDIA: gpryzby



More information about the Novalug mailing list