X access control

Dan Nicholson dbn.lists at gmail.com
Wed Apr 23 10:00:47 PDT 2008


On Wed, Apr 23, 2008 at 4:26 AM, Pawel K <pawlaczus at yahoo.com> wrote:
> Hello
>
> How can I enable applications from localhost to be run on user's display.
> I have to execute "xhost +localhost" everytime I start a user's session.
>
> I put the following into user's ~/.bash_profile:
> export DISPLAY=:0.0
> [ "$DISPLAY" != "" ] && xhost +
>
> but it takes long time to log on whne X server is not running.
>
> Is there any system wide file of where I can disable access control for
> localhost.
> If not how can I configure it correctly ?

Yes, you want /etc/X0.hosts where 0 is the display number. See the
Xserver man page.

--
Dan



More information about the xorg mailing list