From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Markus Waldorf Newsgroups: gmane.os.tru64.managers Subject: remote CDE logins Date: Tue, 10 Jun 2003 14:42:55 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1055248848 19757 80.91.224.249 (10 Jun 2003 12:40:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2003 12:40:48 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jun 10 14:40:47 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19PiQg-00058N-00 for ; Tue, 10 Jun 2003 14:40:46 +0200 Original-Received: (qmail 29903 invoked by uid 5); 10 Jun 2003 12:43:07 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29894 invoked by uid 49493); 10 Jun 2003 12:43:07 -0000 Original-Received: from waldorfm@rferl.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.7/5.0):. Processed in 0.699248 secs); 10 Jun 2003 12:43:07 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 10 Jun 2003 12:43:06 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HG9002D6NBSR9@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 10 Jun 2003 08:43:05 -0400 (EDT) Original-Received: from rferl.org (praguegate.rferl.org [193.111.134.14]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HG9002FPNBMUF@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 10 Jun 2003 08:42:59 -0400 (EDT) Original-Received: from prglnmail01.rferl.org (193.111.134.21) by rferl.org with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Tue, 10 Jun 2003 14:42:59 +0200 Original-Received: from [172.16.8.25] ([172.16.8.25]) by prglnmail01.rferl.org (Lotus Domino Release 6.0.1CF1) with ESMTP id 2003061014422905-396 ; Tue, 10 Jun 2003 14:42:29 +0200 Original-To: Unix Managers X-MIMETrack: Itemize by SMTP Server on PRGLNMail01/CZ/RFERL(Release 6.0.1CF1 | March 06, 2003) at 06/10/2003 02:42:29 PM, Serialize by Router on PRGLNMail01/CZ/RFERL(Release 6.0.1CF1 | March 06, 2003) at 06/10/2003 02:42:30 PM, Serialize complete at 06/10/2003 02:42:30 PM User-Agent: Microsoft-Entourage/10.1.1.2418 Xref: main.gmane.org gmane.os.tru64.managers:4487 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4487 Hello, I hope the questions below are not too trivial, but unfortunately I'm rather unfamiliar with the security and access methods to establish a CDE/Motif X-windows session to another computer. So far I've been using "Exodus" and MacX, which use XDMCP and are rather easy to use, but I have never done it from another Tru64 box. I noticed some issues which are unclear to me and was hopping someone could please enlighten my questions below: (1) I noticed that X-windows access control is managed by the programs "xhost" and "dxhosts". "xhost +" can be used to disable access control list at all, which would allow anyone to get a windows login screen if I understand correctly - maybe not a good idea. One thing I wonder about is that when typing xhost +host.domain.name followed by just "xhost" it lists allowed hosts, but it does not show them anymore after a system restart, where xhost just displays that access control is enabled or not. Subsequent logins work though. There is also "dxhosts", which does not seem to have this kind of problem as it lists all known hosts. What is the deal here please? (2) I thought it would be possible to use telnet, ssh, rsh and rlogin to establish a session on a remote system and run a program remotely, e.g. xterm. For this to work the remote session needs to know what the DISPLAY ip address is. I noticed so far that at least telnet and rlogin do not set the DISPLAY variable. Is there something I can do to automate this in e.g. /etc/profile using a dynamic source IP address? Why is this not done by default, and what does export $DISPLAY do? (3) How would I establish a CDE login session on a remote computer using another Tru64 server. Am I supposed to telnet to the remote computer and use e.g. dtlogin, or how? (4) Are there some known access configurations that should be avoided, such as MIT-COCKIE, etc. Could someone please make recomendations and explain how to manage it? (5) It seems like X-windows access control can be host or user based. Could someone please explain the difference in terms of how the system recognizes these type of logins. When is it using host, and when user based access control? (6) I can login to one of our servers using XDMCP from my workstation using XDarwin (MacOSX) or Exodus. I get the CDE login screen and can login as root since I added my workstation IP to /etc/securettys. However, "xhost" or "dxhost" don't show my workstation in its access control lists. I guess it sort of established some other method, e.g. MIT-COCKIE. How do I know? (6) I added a Tru64 workstation to the xhost list on a server. When I type "xhost" it shows it. I telnet to the server and su root. The workstation is also in /etc/securettys. I type DISPLAY=merlin.rferl.org:0, followed by export DISPLAY. Typing "set" shows it. But when I try to run xterm it gives an error: xlib: connection to "merlin.rferl.org:0" refused by server, Xlib: Client is not authorized to connect to Server, Error: Can't open display: merlin.rferl.org:0. What is wrong please? Thanks a lot for any response! Best regards, RFE/RL, Inc. Markus Waldorf