Re: can't su and run X programs
Re: can't su and run X programs
- Subject: Re: can't su and run X programs
- From: Jerry Talkington <email@hidden>
- Date: Tue, 21 Oct 2003 13:42:57 -0700
- Mail-followup-to: X-11 <email@hidden>
On Tue, Oct 21, 2003 at 11:21:28AM -0500, rgball wrote:
> This must be simple but I don't see it. :-)
>
> [running 10.2.x and X11 beta]
>
> I'm logged in as me and typing "xclock" in an xterm brings up the clock. Now I
> su - to another user name and type "xclock" and get
>
> Error: Can't open display:
>
> Oh, I say, DISPLAY isn't set. So I do a "setenv DISPLAY :0" and try "xclock"
> again and I get
>
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> Error: Can't open display: :0
>
> What's up? This works fine on my IRIX box.
It shouldn't. Other users shouldn't be able to pop up windows on your
display. You can grant permission to do so with an
xhost localhost
though (which is probably what is happening on the IRIX box.)
--
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.