annotate etc/gnuserv.1 @ 84:ac0620f6398e r20-0b92

Import from CVS: tag r20-0b92
author cvs
date Mon, 13 Aug 2007 09:08:29 +0200
parents 376386a54a3c
children 0132846995bd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 .TH GNUSERV 1 "" "XEmacs Server"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 .UC 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 .SH NAME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 gnuserv, gnuclient, gnuattach, gnudoit \- Server and Clients for XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 .SH SYNOPSIS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 .B gnuclient
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 [-q] [[-h hostname] [-p port] [-r pathname]] [[+line] path] ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 .B gnuattach
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 [[-h hostname] [-p port] [-r pathname]] [[+line] path] ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 .B gnudoit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 [-q] [[-h hostname] [-p port]] [sexpr] ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 .B gnuserv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 .SH DESCRIPTION
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 \fIgnuclient\fP allows the user to request a running XEmacs process to edit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 the named files or directories (typically in a newly created X frame).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 \fIgnuattach\fP allows the user to request a running XEmacs process to edit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 the named files or directories in the current TTY connection. One typical
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 use for this is with a dialup connection to a machine on which an XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 process is currently running.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 \fIgnudoit\fP allows the user to request a running XEmacs process to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 evaluate the given arguments inside a progn LISP form.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 \fIgnuserv\fP is the server program that is set running by XEmacs to handle
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 all incoming and outgoing requests. It is not usually invoked directly, but is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 started from XEmacs by loading the \fIgnuserv\fP package and evaluating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 the LISP form (gnuserv-start).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 .SH OPTIONS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 .BI \-q
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 This option informs both \fIgnuclient\fP and \fIgnudoit\fP to exit once
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 connection has been made with the XEmacs process. Normally \fIgnuclient\fP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 waits until all of the files on the command line have been finished with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (their buffers killed) by the XEmacs process, and \fIgnudoit\fP normally
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 waits around for evaluation of its arguments by the XEmacs process, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 prints the results or error conditions. This option does not exist for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 \fIgnuattach\fP because it does not make sense -- XEmacs and the shell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 would fight for input and would screw up each other's output.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 .BI \-h " hostname"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 Used only with Internet-domain sockets, this option specifies the host
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 machine which should be running \fIgnuserv\fP. If this option is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 specified then the value of the environment variable GNU_HOST is used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 if set. If no hostname is specified, and the GNU_HOST variable is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 set, an internet connection will not be attempted. N\.B.: \fIgnuserv\fP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 does NOT allow internet connections unless the GNU_SECURE variable has
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 been specified and points at a file listing all trusted hosts. (See
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 SECURITY below.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 Note that an internet address may be specified instead of a hostname which can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 speed up connections to the server by quite a bit, especially if the client
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 machine is running YP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 Note also that a hostname of \fBunix\fP can be used to specify that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 the connection to the server should use a Unix-domain socket (if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 supported) rather than an Internet-domain socket.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 .BI \-p " port"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 Used only with Internet-domain sockets, this option specifies the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 service port used to communicate between server and clients. If this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 option is not specified, then the value of the environment variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 GNU_PORT is used, if set, otherwise a service called ``gnuserv'' is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 looked up in the services database. Finally, if no other value can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 found for the port, then a default port is used which is usually 21490
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 + uid.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 Note that since \fIgnuserv\fP doesn't allow command-line options, the port for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 it will have to be specified via one of the alternative methods.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 .BI \-r " pathname"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 Used only with Internet-domain sockets, the pathname argument may be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 needed to inform XEmacs how to reach the root directory of a remote
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 machine. \fIgnuclient\fP and \fIgnuattach\fP prepend this string to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 each path argument given. For example, if you were trying to edit a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 file on a client machine called otter, whose root directory was
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 accessible from the server machine via the path /net/otter, then this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 argument should be set to '/net/otter'. If this option is omitted,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 then the value is taken from the environment variable GNU_NODE, if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 set, or the empty string otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 .BI "path"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 This is the path of the file to be edited. If the file is a directory, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 the directory browsers dired or monkey are usually invoked instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 .BI "sexpr"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 This is part of an XEmacs LISP expression to evaluate. All the sexprs are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 concatenated together and wrapped in a progn form before sending to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 XEmacs. If no sexpr is supplied on the \fIgnudoit\fP commandline,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 \fIgnudoit\fP will read the sexpr to be evaluated from standard input.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 .SH SETUP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 \fIgnuserv\fP is packaged standardly with recent versions of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 Therefore, you should be able to start the server simply by evaluating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 the XEmacs Lisp form (gnuserv-start), or equivalently by typing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 `M-x gnuserv-start'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 .SH EXAMPLE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 .RS 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 gnudoit -q '(mh-smail)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 gnuclient -h cuckoo -r /ange@otter: /tmp/*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 gnuattach ../src/listproc.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 .RE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 .SH SYSV IPC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 SysV IPC is used to communicate between \fIgnuclient\fP,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 \fIgnuattach\fP, \fIgnudoit\fP and \fIgnuserv\fP if the symbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 SYSV_IPC is defined at the top of gnuserv.h. This is incompatible with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 both Unix-domain and Internet-domain socket communication as described
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 below. A file called /tmp/gsrv??? is created as a key for the message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 queue, and if removed will cause the communication between server and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 client to fail until the server is restarted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 .SH UNIX-DOMAIN SOCKETS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 A Unix-domain socket is used to communicate between \fIgnuclient\fP,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 \fIgnuattach\fP, \fIgnudoit\fP and \fIgnuserv\fP if the symbol
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 UNIX_DOMAIN_SOCKETS is defined at the top of gnuserv.h. A file called
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 /tmp/gsrvdir????/gsrv is created for communication and if deleted will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 cause communication between server and client to fail. Only the user
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 running gnuserv will be able to connect to the socket.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 .SH INTERNET-DOMAIN SOCKETS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 Internet-domain sockets are used to communicate between
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 \fIgnuclient\fP, \fIgnuattach\fP, \fIgnudoit\fP and \fIgnuserv\fP if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 the symbol INTERNET_DOMAIN_SOCKETS is defined at the top of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 gnuserv.h. Both Internet-domain and Unix-domain sockets can be used at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 the same time. If a hostname is specified via -h or via the GNU_HOST
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 environment variable, \fIgnudoit\fP, \fIgnuclient\fP and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 \fIgnuattach\fP establish connections using an internet domain
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 socket. If not, a local connection is attempted via either a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 unix-domain socket or SYSV IPC."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 .SH SECURITY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 Using Internet-domain sockets, a more robust form of security is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 needed that wasn't necessary with either Unix-domain sockets or SysV
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 IPC. Currently, two authentication protocols are supported to provide
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 this: MIT-MAGIC-COOKIE-1 (based on the X11 xauth(1) program) and a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 simple host-based access control mechanism, hereafter called
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 GNUSERV-1. The GNUSERV-1 protocol is always available, whereas support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 for MIT-MAGIC-COOKIE-1 may or may not have been enabled (via a #define
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 at the top of gnuserv.h) at compile-time.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 \fIgnuserv\fP, using GNUSERV-1, performs a limited form of access
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 control at the machine level. By default no internet-domain socket is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 opened. If the variable GNU_SECURE can be found in \fIgnuserv\fP's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 environment, and it names a readable filename, then this file is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 opened and assumed to be a list of hosts, one per line, from which the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 server will allow requests. Connections from any other host will be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 rejected. Even the machine on which \fIgnuserv\fP is running is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 permitted to make connections via the internet socket unless its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 hostname is explicitly specified in this file. Note that a host may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 be either a numeric IP address or a hostname, and that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 .I any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 user on an approved host may connect to your gnuserv and execute arbitrary
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 elisp (e.g., delete all your files).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 If this file contains a lot of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 hostnames then the server may take quite a time to start up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 When the MIT-MAGIC-COOKIE-1 protocol is enabled, an internet socket
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 \fIis\fP opened by default. \fIgnuserv\fP will accept a connection from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 any host, and will wait for a "magic cookie" (essentially, a password)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 to be presented by the client. If the client doesn't present the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 cookie, or if the cookie is wrong, the authentication of the client is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 considered to have failed. At this point. \fIgnuserv\fP falls back to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 the GNUSERV-1 protocol; If the client is calling from a host listed in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 the GNU_SECURE file, the connection will be accepted, otherwise it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 will be rejected.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 .TP 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 .I Using MIT-MAGIC-COOKIE-1 authentication
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 When the \fIgnuserv\fP server is started, it looks for a cookie
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 defined for display 999 on the machine where it is running. If the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 cookie is found, it will be stored for use as the authentication
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 cookie. These cookies are defined in an authorization file (usually
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 ~/.Xauthority) that is manipulated by the X11 xauth(1) program. For
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 example, a machine "kali" which runs an emacs that invokes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 \fIgnuserv\fP should respond as follows (at the shell prompt) when set
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 up correctly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 .RS 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 kali% xauth list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 GS65.SP.CS.CMU.EDU:0 MIT-MAGIC-COOKIE-1 11223344
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 .br
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 KALI.FTM.CS.CMU.EDU:999 MIT-MAGIC-COOKIE-1 1234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 .RE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 .RS 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 In the above case, the authorization file defines two cookies. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 second one, defined for screen 999 on the server machine, is used for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 gnuserv authentication.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 On the client machine's side, the authorization file must contain an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 identical line, specifying the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 .I server's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 cookie. In other words, on a machine "foobar" which wishes to connect
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 to "kali," the `xauth list' output should contain the line:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 .RS 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 KALI.FTM.CS.CMU.EDU:999 MIT-MAGIC-COOKIE-1 1234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 .RE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 For more information on authorization files, take a look at the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 xauth(1X11) man page, or invoke xauth interactively (without any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 arguments) and type "help" at the prompt. Remember that case in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 name of the authorization protocol (i.e.`MIT-MAGIC-COOKIE-1')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 .I is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 significant!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 .RE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 .SH FILES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 .B /tmp/gsrv???
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 (SYSV_IPC only)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 .B /tmp/gsrvdir???/gsrv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 (unix domain sockets only)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 .B ~/.emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 XEmacs customization file, see xemacs(1).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 .SH SEE ALSO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 .TP 8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 xauth(1X11), Xsecurity(1X11)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 .SH BUGS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 Ctrl-D's occurring in gnudoit input strings won't be handled correctly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 .PP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 NULs occurring in result strings don't get passed back to gnudoit properly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 .SH AUTHOR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 Andy Norman (ange@hplb.hpl.hp.com), based heavily upon
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 etc/emacsclient.c, etc/server.c and lisp/server.el from the GNU Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 18.52 distribution. Various modifications from Bob Weiner (weiner@mot.com),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 Darrell Kindred (dkindred@cmu.edu), Arup Mukherjee (arup@cmu.edu), and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 Ben Wing (wing@666.com).