Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xhost + 1

Status
Not open for further replies.

sunilprao

MIS
Jun 20, 2000
21
IN
Hi,

I would like to have access control disabled on my solaris box so that neither root or ordinary users would have to run xhost+.

Is there a way to achieve this?

thanks
Sunil
 
You can run X environment with "-noauth" option

if you are running CDE you can do the following:

cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig

Uncomment the Dtlogin*authorize line. It will look like:

###########################################################
# To disable R4 MIT-MAGIC-COOKIE-1 per-user authorization.
#
Dtlogin*authorize: False
This will let your server run with the -noauth option.

Additionally, the program `xauth' can be used to obtain the `magic cookie' authorization information used in connecting to the X11 server, and then this information can be added to the .Xauthority file in user home directory.
For example, the most common use for xauth is to extract the entry for the current display, copy it to another machine, and merge it into the user's authority file on the remote machine:

xauth extract - $DISPLAY | rsh other xauth merge -

Hope this helps,

Regards,
Carlos Almeida,
 
Hi,

I am using charting solution using java and I find this not working for me. I need to still run xhost + and restart netscape webserrver on command line. If I restart using browser, then I cannot get my charting to work.

Any more advices would be greatly appreciated.

Thanks
Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top