I found that this xhost thing was an old thread and the advice therefrom cured my problem: doing xhost +localhost as regular user before su'ing then allows root to start emacs ... I dont know just when this started, probably kernel 2.2 or..? not important thanks to the list for old advice, and for all new answers! a little more spadework on my part before complaining and i wouldn't have had to hit the email Jack >From: "Mikkel L. Ellertson" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >CC: [EMAIL PROTECTED] >Subject: Re: xhost: unable to open display ":0.0" >Date: Fri, 9 Jun 2000 17:22:05 -0500 (CDT) >MIME-Version: 1.0 >Received: from [64.34.45.209] by hotmail.com (3.2) with ESMTP id >MHotMailBB0AC10C0075D82197E640222DD1FA790; Fri Jun 09 15:56:13 2000 >Received: from gatekeeper.Infinity-ltd.com >([EMAIL PROTECTED] [192.168.9.1])by >gatekeeper.Infinity-ltd.com (8.8.7/8.8.7) with ESMTP id RAA23494;Fri, 9 Jun >2000 17:22:05 -0500 >From [EMAIL PROTECTED] Fri Jun 09 16:00:08 2000 >In-Reply-To: <[EMAIL PROTECTED]> >Message-ID: ><[EMAIL PROTECTED]> > >On Fri, 9 Jun 2000, Jack Byers wrote: > > > when hitting stuff like this, that used tojust work > > I think i will forever be a newbie > > > > anyway i can no longer get any response out of xhost > > either as normal user or when su'ing to root > > > > [byers@byers byers]$ xhost > > access control enabled, only authorized clients can connect > > >No hosts are in the access list. Use xhosts <hostname> if you want to >add one. > > > > [byers@byers byers]$ su > > Password: > > [root@byers byers]# xhost > > Xlib: connection to ":0.0" refused by server > > Xlib: Client is not authorized to connect to Server > > xhost: unable to open display ":0.0" > > >root is not authorized to connect to the display the user has open, so >xhost can not run. Security on X has been tightened up. > > > > [root@byers byers]# exit > > [byers@byers byers]$ echo $DISPLAY > > :0.0 > > [byers@byers byers]$ su > > Password: > > [root@byers byers]# echo $DISPLAY > > :0.0 > > [root@byers byers]# > > > > at some point in the distant past i amsure iwas able to > > run xhost and see the list of addresses i had set up > > for access, and also to do the +hostname for adding in new ones > > but now, as you can see above i cant even get in. > > > > > > isnt the 0:0 ok for DISPLAY doing stuff locally? > > for some reason i am drawing a complete blank here, > > maybe something i used to do differently. > > >Yes, it is the local display, but by default only the user who started X >can access the display for security reasions. Otherwise, any user on >the same system could start a program and have it show up on your >desktop. there are also ways to capture every key stroke, and other >nasty things! > > > > a similar response when trying to change an XF86Config file: > > first when trying as normal user emacs opens the file fine but > > says it is write protected which checks. > > [byers@byers X11]$ emacs XF86Confignew & > > [1] 868 > > [byers@byers X11]$ > > > > ok so i su > > and try to open the file: > > [byers@byers X11]$ su > > Password: > > [root@byers X11]# emacs XF86Confignew & > > [1] 871 > > [root@byers X11]# Xlib: connection to ":0.0" refused by server > > Xlib: Client is not authorized to connect to Server > > emacs: Cannot connect to X server :0.0. > > Check the DISPLAY environment variable or use `-d'. > > Also use the `xhost' program to verify that it is set to permit > > connections from your machine. > > > > > > ahh but i cant get xhost program to respond..?????? > > > > > > thanks for any help > > Jack > > >You can run xhost as a user, and add hosts, or read up on xauth. I >don't know xauth well enough to try and explain how to use it... > >Mikkel >-- > > Do not meddle in the affairs of dragons, > for you are crunchy and taste good with ketchup. > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.