Operating System - HP-UX
1822207 Members
3783 Online
109641 Solutions
New Discussion юеВ

Re: turning off access to the X-server

 
Quark
Valued Contributor

turning off access to the X-server

Hi,

I am running HP-UX11.11.
I want to disable access to the X-server running on my system. Nobody should be able to use an X client (Reflection) and make a connection to my system.
I read that I have to use the command 'xhost -' to do this. However, when I execute this command, I am still able to establish a connection from my Pc using Reflection X to my Unix station. (I am using the 'direct' connection method).

Any idea how I can achieve this?

With kind regards,

Kris
4 REPLIES 4
Marcel Boogert_1
Trusted Contributor

Re: turning off access to the X-server

Hi there,

Try this command:

/sbin/init.d/dtlogin.rc stop

Regards, MB.
Quark
Valued Contributor

Re: turning off access to the X-server

Helo Marcel,

this indeed turns off the dtlogon program.
The problem is that I need to be able to logon to the Unix system via X via just one station.
I have been looking at the manpages of xhost and xauth.
Strange thing is that when I use the command 'xhost - ' I get a message stating the myPc is not allowed to connect anymore but still I can connect.
Very strange
Marcel Boogert_1
Trusted Contributor

Re: turning off access to the X-server

Try this:

http://www.faqs.org/faqs/hp/hpux-faq/section-64.html

I haven't tried it myself, but it looks fine to me.

MB.
john kingsley
Honored Contributor

Re: turning off access to the X-server

Copy /usr/dt/config/Xaccess to /etc/dt/config/Xaccess

Then replace the line:

* # grant service to all remote displays

with the list of systems you want to have Xwindows access:

host1 #comment
host2 #comment
etc....

Then for these changes to take effect, you will need to run:

/usr/dt/bin/dtconfig -reset