Copyright Digital Equipment Corp. All rights reserved.

Copying_Entries_Between_Files

   Use one or more of the following XAUTH commands to copy entries
   for a particular display from one X authority file to another.

   This enables you to use an existing entry to grant another user
   access to a particular display or to obtain access to a remote
   host from the current display device.

   o  EXTRACT - Creates a new X authority file whose entries match
      those in the original file.

   o  MERGE - Appends the contents of one file to another, replacing
      entries for the same display name or adding entries for
      different names.

   o  NEXTRACT and NMERGE - These commands are designed to be used
      with the PIPE command. NEXTRACT extracts file entries in a
      text format that can then be used as input for the NMERGE
      command.

      For example, the following command extracts the X
      authority file entry for the local transport from the file
      UNTRUSTED.DECW$XAUTH and adds it to a new X authority file
      NEW_XAUTHORITY.DECW$XAUTH:

      $  PIPE XAUTH -f UNTRUSTED.DECW$XAUTH NEXTRACT SYS$OUTPUT :0 | -
      _$ XAUTH -f NEW_XAUTHORITY.DECW$XAUTH NMERGE SYS$INPUT

   These commands can also be used with the rsh command to
   copy entries from an X authority file on an OpenVMS host to
   an X authority file on a remote UNIX system. For example,
   the following command extracts the entry for TCP/IP access
   (TCPIP/0:0) and adds it to the current file for user SMITH on
   the remote UNIX system FLOPSY:

   $  PIPE XAUTH -f UNTRUSTED.DECW$XAUTH NEXTRACT TCPIP/0:0 | -
   _$ rsh/user=smith/password=secret flopsy "xauth nmerge -"

                                  NOTE

      When using the PIPE and XAUTH commands to pass information
      to a UNIX host, you must press Ctrl/C to terminate the
      connection to the UNIX host and return control to OpenVMS.