Re: bug in xauth
Re: bug in xauth
- Subject: Re: bug in xauth
- From: "Cook, Rich" <email@hidden>
- Date: Fri, 24 Aug 2012 16:15:23 +0000
- Thread-topic: bug in xauth
On Aug 23, 2012, at 10:30 PM, Jeremy Huddleston Sequoia wrote:
>
> On Aug 23, 2012, at 20:00, "Cook, Rich" <email@hidden> wrote:
>
>> Hi,
>> I'm trying to be able to display to my own machine as root.
>> The issue is that I cannot run sudo from my normal account. I have to do this dance:
>>
>> ssh -Y cook47-a@localhost # change to admin account so I can run sudo
>> sudo -s # get root with sudo
>>
>> So what I'm doing is this:
>> xauth extract - $DISPLAY | ssh -Y cook47-a@localhost sudo xauth merge -
>
> ssh -Y will "just work" as long as you have ssh forwarding configured right. You don't need to do that xauth stuff.
I have to go through cook47-a to get sudo so if DISPLAY was not a Unix file as you point out below, I have to get the MIT-MAGIC-COOKIE in my root xauth list I thought.
>
>> No luck. I am just trying to be able to display xemacs from a root xterm.
>>
>> Nothing works yet. Sigh
>
> Just do this:
>
> echo $DISPLAY
> <do your dance>
> export DISPLAY=<what it was>
>
> root can read/write to that launchd socket.
Oh, right... hmm. Didn't think of that! :-) Duh! Thanks.
>
> That being said, why do you want to do this anyways?
I want to run X11 applications as root.
--
✐Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4024, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden