- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Securing X-sessions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2000 06:59 AM
08-17-2000 06:59 AM
Securing X-sessions
I tried to create /etc/X0.hosts with two records inside (only localhost and 1.1.1.1
should be allowed to connect)
localhost
1.1.1.1
However, the file is being ignored allowing everyone to connect.
Please find below some additional diagnostic information.
If typing 'xhost' from a non-root session, I get
% xhost
access control enabled, only authorized clients can connect
If typing 'xhost' from a root session, I get
# /usr/bin/X11/xhost
Xlib: connection to "2.2.2.2:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/bin/X11/xhost: unable to open display "2.2.2.2:0.0"
Here 2.2.2.2 is IP address of the Windows workstation running X-server application.
The 2.2.2.2 address should be refused when trying to connect.
Thanks in advance for any directions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2000 07:05 AM
08-17-2000 07:05 AM
Re: Securing X-sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2000 07:05 AM
08-17-2000 07:05 AM
Re: Securing X-sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2000 07:25 AM
08-17-2000 07:25 AM
Re: Securing X-sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2000 08:19 AM
08-17-2000 08:19 AM
Re: Securing X-sessions
seem to be ignored, this may be due to
having not restarted the Xserver: Log
completely out and login again.
If /etc/X0.hosts still seems to be ignored
you must be sure, that nowhere during the
login procedure (e.g. /etc/profile, $HOME/
.profile) a 'xhost +' is issued.
The output of your first xhost (non-root
session) is ok, and X security seems to
work fine.
The output of your second xhost (root
session) is ok because you disabled
Xserver access by anyone but not
1.1.1.1 or localhost.
What do you mean with "allowing everyone
to connect"? What connections do you
mean? Of course, just applications that
need any components of the Xserver are
refused, but not other connections (e.g.
rlogins).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 05:06 AM
08-18-2000 05:06 AM
Re: Securing X-sessions
1. I find X-terminology (idea of 'server' and 'client') to be a bit confusing. I'll try to describe the problem once more.
I have HP-UX 10.20 server that should be secured against unsolicited remote access. inetd security is already set in /var/adm/inetd.sec, but another security hole still exists.
inetd.sec does not affect ability to establish remote connection via X-session. So, the host should be configured properly so that to refuse all incoming X connections except the ones from few trusted hosts.
I'm trying to set up /etc/X0.hosts on the HP-UX box that should be secured. The security should defend the HP-UX box from incoming remote access via X-sessions.
2. Removing of localhost from /etc/X0.hosts did not hep (I rebooted the HP-UX box). Probably, I understood manual incorrectly (Graphics Administration Guide for HP-UX 10.20 ACE, Making an X*.hosts File), since it tells
************
> The /etc/X0.hosts file is an ASCII text file containing the hostnames of each
> remote host permitted to access your local server...
> For example, if you are hpaaaaa, and regularly ran clients on hpccccc, and
> hpddddd, you would want the following lines.
>
> hpaaaaa
> hpccccc
> hpddddd
I guessed hpaaaaa is localhost in my case.
3. Startup files does not contain 'xhost +' command. (/etc/profile, /etc/csh/login, ~/.profile, ~/.login, ~.cshrc)
4. This is ps -ef |grep X output
ps -ef |grep X
root 944 1 0 13:14:53 ? 0:00 /usr/bin/X11/SLSd_daemon
daemon 1062 1056 0 13:15:24 ? 0:03 /usr/bin/X11/X :0
5. Running xhost from root account tells that security seem to be set up
# /usr/bin/X11/xhost
Xlib: connection to "2.2.2.2:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/bin/X11/xhost: unable to open display "2.2.2.2:0.0"
However, I can iniate X-session from 2.2.2.2.
Many thanks in advance for more comments!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 05:48 AM
08-18-2000 05:48 AM
Re: Securing X-sessions
Points to note / try : check using vi that we don't have any trailing blanks etc in the /etc/X0.hosts file.
Does the problem still occur if you use hostnames as opposed to ip addresses ?
Am I right by saying we have a local hp-ux system (1.1.1.1) and another remote system (2.2.2.2) involved here : you are on the local box with a Xsession running, you wish to prevent the remote system having access to your local systems display right ?
Entries on 1.1.1.1 in /etc/X0.hosts = localhost & 1.1.1.1
You then run your application remotely on 2.2.2.2 by either using
You are expecting the above to fail but instead the application appears on screen 1.1.1.1:0
Also you mention the root output in point 5 gives a connection refused error where's this being run ? and does it involve rlogin or a telnet session ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 09:07 AM
08-18-2000 09:07 AM
Re: Securing X-sessions
The 10.20 that you are referring to as a 'server' is a workstation, running X. Is it
running a login manager, such as CDE's dtlogin, VUE's vuelogin, or xdm?
If it is running a login manager, then by default the system will:
- prevent access to the screen by *any* user while the login manager is displaying
- prevent access to the screen to only the user who holds the 'cookie' after login is complete.
If you are not running a login manager, then you need to try and mimic what the login manager does in terms of MIT-MAGIC-COOKIE authentication. man dtlogin and man Xserver should give you a start on what that is about. An additional man page on xauth might be of some interest as well.
Once you are logged into a workstation as user 'a', in the default setup, user 'a' can display because he has access to the $HOME/.Xauthority file where the cookie is stored. If 'a' su's to another user (root), then that user (root), *must* have access to the .Xauthority OR he must be given a copy so that he may put it in his own .Xauthority file.
If you are not using MIT-MAGIC-COOKIE authentication (.Xauthority) then the only access is through host-based authentication. This is what happens when you use xhost. Any user from host 'b' can access the display if you have done xhost +b.
And, yes, the client and server terminology can be quite confusing the first time you see it. Think of it this way the 'server' is the machine that is controlling the graphics *card* (hardware), while the 'client' is the machine where the program is executing. In the case of an Xterminal, for example, it is the 'server' in X-parlance because it controls the graphics card.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2000 03:51 AM
08-20-2000 03:51 AM
Re: Securing X-sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2000 11:08 PM
08-20-2000 11:08 PM