Bug 2721

Summary: default host-based access control settings
Product: xorg Reporter: Ciprian Ciubotariu <cheepeero>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high    
Version: 6.8.2   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Ciprian Ciubotariu 2005-03-13 17:26:01 UTC
I'm trying to configure the X server to use host-based access control rules  
from /etc/X0.hosts. The contents is a single line, namely "local:".  
  
After startup the server won't accept seemingly valid connections; I see this  
in the log:  
  
AUDIT: Mon Mar 14 03:05:16 2005: 24265 X: client 30 rejected from local host  
  
Issuing xhost here gives:  
  
access control enabled, only authorized clients can connect  
LOCAL:  
  
After typing "xhost + local:" in a terminal in X the same access rules are  
reported by xhost, only the applications now do work.  
  
What exactly isn't working... I've got "/usr/bin/irexec /etc/lircrc"started 
from an initscript, next when pressing some button the following is executed: 
"/bin/ps -C xawtv && /bin/killall xawtv || /usr/bin/xawtv -f -display :0 &" 
 
Please mail me if you need more info; I won't be monitoring this since I've 
already found a workaround. Also mail me if it gets fixed :-)
Comment 1 Ryan Underwood 2005-06-09 22:30:06 UTC
I ran into this exact problem as well.  Additional to your workaround: if the
server is started with -auth /etc/X0.hosts, then everything works fine. 
Otherwise, X0.hosts is read and LOCAL: is in the xhost list, but it rejects
such connections until it is removed and then re-added using xhost.
Comment 2 Daniel Stone 2007-02-27 01:25:43 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 chemtech 2013-03-15 14:31:53 UTC
Ciprian Ciubotariu 
Do you still experience this issue with newer soft ?
Please check the status of your issue.
Comment 4 debguy 2014-11-28 06:00:24 UTC
http://sourceforge.net/p/xdm-options/

configures xdm and has host based access control and some tips on use of iceauth and xhost

also of running "Xorg -query host", "Xorg -indirect" (phone list of x hosts), and Xnest

really a bug submission site is not a linux forum for common application use chatting

bad enough are all the 100's of bugs submitted that are user error
Comment 5 GitLab Migration User 2018-12-13 22:14:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/326.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.