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.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.