Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do X in sudo?



ssh -X -Y email@hidden
sudo nedit myfile.txt

Make sure your /etc/sudoers file on the remote host saves your DISPLAY and whatnot:
Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"


--Jeremy

On Aug 26, 2008, at 19:52, James Rome wrote:

I want to login to my Ubuntu machine and do X as root. But it does not work:

jar@jarhp:~$ sudo su
[sudo] password for jar:
root@jarhp:/home/jar# cd /etc
root@jarhp:/etc# nedit wpa_supplicant.conf &
[1] 16270
root@jarhp:/etc# X11 connection rejected because of wrong authentication.
NEdit: Can't open display


How do I solve this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >How to do X in sudo? (From: James Rome <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.