home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18823 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  3.5 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: anthony@kurango.cit.gu.edu.au (Anthony Thyssen)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: setting DISPLAY env variable
  5. Message-ID: <1992Dec22.054149.10307@sm.sony.co.jp>
  6. Date: 22 Dec 92 05:41:49 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Griffith University.
  10. Lines: 64
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: Tue, 22 Dec 1992 03:20:51 GMT
  14. Message-Id: <Bzn5As.56y@kurango.cit.gu.edu.au>
  15. Newsgroups: comp.windows.x
  16. References: <1gmgnoINN4bu@sol.deakin.OZ.AU>, <smr.724586387@hitkw14>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. An extract from my info files....
  20.  
  21. ------------------------------------------------------------------------------
  22. Methods to automatically passwd Authorization from one machine to another.
  23.   This also includes the problem of notifing the remote host of the current
  24. DISPLAY that is being used.
  25.  
  26. 1/ Use rsh/rexec  (the method in the xauth manual)
  27.       Set up the your .rhosts file in the home directory on the remote
  28.   machine so that a password in not required to remotly execute commands.
  29.  
  30.          xauth extract - $DISPLAY | rsh other xauth merge -
  31.  
  32.   This method is also used by xrsh to pass authorization. My vampire
  33.   program also uses a variation, however I wrap it as part of the remote
  34.   command sequence  (EG:  xauth add $auth)
  35.  
  36.      Included in this method is the use of `xrlogin' and `xrsh' to do
  37.   this job for you. These programs usally (the newer ones that is) allow
  38.   you to pass a secified list of ENVIRONMENT variables which includes
  39.   the `DISPLAY' and/or a copy of the authorization code required.
  40.  
  41. 2/ Wrap it as part of the TERM environment variable.
  42.       This method uses the fact that most remote command executors do pass
  43.   the TERM environment variable to the remote host. It is then a matter of
  44.   an appropiate script in your remote .login file to extract the information
  45.   from the TERM environment variable and set up things appropiatly.
  46.  
  47. 3/ NFS.
  48.      Write it to a file on a shared NFS partition you have access to.
  49.    Note that if the home directories are NFS mounted, then authorization
  50.    is automatically passed, Hoever you will still have to pass your
  51.    DISPLAY environment variable via a file.  IE:
  52.  
  53.       login host:       echo $DISPLAY > ~/.X11host
  54.       remote host:      setenv DISPLAY `cat ~/.X11host`
  55.  
  56. 4/ Finger for the info in a .plan file
  57.       This involves encrypting the information into your `plan' or
  58.   `project' and having the remote machine finger for the information.
  59.   This has the disadvantage of having the information to anyone fingering
  60.   the user.  Thus requiring a encryption method that is uniq to each
  61.   individual.  IE: the method of decyrption must not be shared or knowen
  62.   by others, nor should it be easy to determine.
  63.  
  64.     A improvment is to use the `who fingered me' technique to only give
  65.   the information only to your own remote accounts and not just to anyone
  66.   who is asking.
  67.  
  68. ------------------------------------------------------------------------------
  69.  
  70.  
  71.   Anthony Thyssen - (SysProg @ Griffith University)     anthony@cit.gu.edu.au
  72. ------------------------------------------------------------------------------
  73.    Like all bee keepers, Death wore a veil. It wasn't that he had anything
  74.    to sting, but sometimes a bee would get inside his skull and buzz
  75.    around, giving him a headache.          --- Terry Pratchet - "Eric"
  76. ------------------------------------------------------------------------------
  77.