• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bug in xauth
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in xauth


  • Subject: Re: bug in xauth
  • From: Jeremy Huddleston Sequoia <email@hidden>
  • Date: Thu, 23 Aug 2012 22:30:06 -0700

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.

> 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.

That being said, why do you want to do this anyways?



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)

This email sent to email@hidden

  • Follow-Ups:
    • Re: bug in xauth
      • From: "Cook, Rich" <email@hidden>
References: 
 >bug in xauth (From: "Cook, Rich" <email@hidden>)
 >Re: bug in xauth (From: Jeremy Huddleston Sequoia <email@hidden>)
 >Re: bug in xauth (From: "Cook, Rich" <email@hidden>)

  • Prev by Date: X11 forwarding breaks with 2.7.3_rc2
  • Next by Date: Re: X11 forwarding breaks with 2.7.3_rc2
  • Previous by thread: Re: bug in xauth
  • Next by thread: Re: bug in xauth
  • Index(es):
    • Date
    • Thread