xhost, IP range possible? config must auto. recreate after reboot

2007-12-25 0:31:00

I am trying to give access many hosts for a particular server's display and
I need this configuration to carry through a reboot without having to
manually execute command(s) from the console after a reboot. /etc/X0.hosts
had potentially solved this but there is a large number of unique accesses,
so maintaining a specific list isn't ideal. Escpecially across 8
configurations. I had hoped possibly that I could put in an IP range into
/etc/X0.hosts but this hasn't worked thus far. Oracle will simply tell you
to use xhost + which makes me shun but even with that, after a reboot, I
haven't been able to automate it through an init script or post code within
the dtlogin startup script. xhost will basically hang or complain that it
cant open the display.

I tried the following in different areas of the init scripts:

XAUTHORITY=`ps -aef | grep '[X]sun' | sed 's/.* //'`
export XAUTHORITY
DISPLAY=:0
export DISPLAY
/usr/openwin/bin/xhost +

The above will work from remote command line,, obviously after the system
has finishing booting...

Anyone have any ideas?

Comments

Got something to say?

You must be logged in to post a comment.