]> git.saurik.com Git - apple/network_cmds.git/blame - identd.tproj/identd.8
network_cmds-115.2.tar.gz
[apple/network_cmds.git] / identd.tproj / identd.8
CommitLineData
b7080c8e
A
1.\" @(#)identd.8 1.9 92/02/11 Lysator
2.\" Copyright (c) 1992 Peter Eriksson, Lysator, Linkoping University.
3.\" This software has been released into the public domain.
4.\"
7ba0088d 5.\" $Id: identd.8,v 1.2 2002/03/29 01:34:27 bbraun Exp $
b7080c8e
A
6.\"
7.TH IDENTD 8 "27 May 1992"
8.SH NAME
9identd \- TCP/IP IDENT protocol server
10.SH SYNOPSIS
11.B identd
12.RB [ \-i | \-w | \-b ]
13.RB [ \-t<seconds> ]
14.RB [ \-u<uid> ]
15.RB [ \-g<gid> ]
16.RB [ \-p<port> ]
17.RB [ \-a<address> ]
18.RB [ \-c<charset> ]
19.RB [ \-n ]
20.RB [ \-o ]
21.RB [ \-e ]
22.RB [ \-l ]
23.RB [ \-V ]
24.RB [ \-v ]
25.RB [ \-m ]
26.RB [ \-N ]
27.RB [ \-d ]
28.RB [ kernelfile [ kmemfile ] ]
29.SH DESCRIPTION
30.IX "identd daemon" "" \fLidentd\fP daemon"
31.B identd
32is a server which implements the
33.SM TCP/IP
34proposed standard
35.SM IDENT
36user identification protocol as specified in the
37.SM RFC\s0 1413
38document.
39.PP
40.B identd
41operates by looking up specific
42.SM TCP/IP
43connections and returning the user name of the
44process owning the connection.
45.SH ARGUMENTS
46The
47.B -i
48flag, which is the default mode, should be used when starting the
49daemon from
50.B inetd
51with the "nowait" option in the
52.B /etc/inetd.conf
53file. Use of this mode will make
54.B inetd
55start one
56.B identd
57daemon for each connection request.
58.PP
59The
60.B -w
61flag should be used when starting the daemon from
62.B inetd
63with the "wait" option in the
64.B /etc/inetd.conf
7ba0088d 65file . This is the preferred mode of
b7080c8e
A
66operation since that will start a copy of
67.B identd
68at the first connection request and then
69.B identd
70will handle subsequent requests
71without having to do the nlist lookup in the kernel file for
72every request as in the
73.B -i
74mode above. The
75.B identd
76daemon will run either forever, until a bug
77makes it crash or a timeout, as specified by the
78.B -t
79flag, occurs.
80.PP
81The
82.B -b
83flag can be used to make the daemon run in standalone mode without
84the assistance from
85.B inetd.
7ba0088d 86This mode is the least preferred mode since
b7080c8e
A
87a bug or any other fatal condition in the server will make it terminate
88and it will then have to be restarted manually. Other than that is has the
89same advantage as the
90.B -w
91mode in that it parses the nlist only once.
92.PP
93The
94.B -t<seconds>
95option is used to specify the timeout limit. This is the number
96of seconds a server started with the
97.B -w
98flag will wait for new connections before terminating. The server is
99automatically restarted by
100.B inetd
101whenever a new connection is requested
102if it has terminated. A suitable value for this is 120 (2 minutes), if
103used. It defaults to no timeout (ie, will wait forever, or until a
104fatal condition occurs in the server).
105.PP
106The
107.B -u<uid>
108option is used to specify a user id number which the
109.B ident
110server should
111switch to after binding itself to the
112.SM TCP/IP
113port if using the
114.B -b
115mode of operation.
116.PP
117The
118.B -g<gid>
119option is used to specify a group id number which the
120.B ident
121server should
122switch to after binding itself to the
123.SM TCP/IP
124port if using the
125.B -b
126mode of operation.
127.PP
128The
129.B -p<port>
130option is used to specify an alternative port number to bind to if using
131the
132.B -b
133mode of operation. It can be specified by name or by number. Defaults to the
134.SM IDENT
135port (113).
136.PP
137The
138.B -a<address>
139option is used to specify the local address to bind the socket to if using
140the
141.B -b
142mode of operation. Can only be specified by IP address and not by domain
143name. Defaults to the
144.SM INADDR_ANY
145address which normally means all local addresses.
146.PP
147The
148.B -V
149flag makes
150.B identd
151display the version number and the exit.
152.PP
153The
154.B -l
155flag tells
156.B identd
157to use the System logging daemon
158.B syslogd
159for logging purposes.
160.PP
161The
162.B -v
163flag causes
164.B identd
165to log every request made, if the use of
166.B syslogd
167is enabled.
168.PP
169The
170.B -o
171flag tells
172.B identd
173to not reveal the operating system type it is run on and to instead
174always return "OTHER".
175.PP
176The
177.B -e
178flag tells
179.B identd
180to always return "UNKNOWN-ERROR" instead of the "NO-USER" or
181"INVALID-PORT" errors.
182.PP
183The
184.B -c<charset>
185flags tells
186.B identd
187to add the optional (according to the IDENT protocol) character set
188designator to the reply generated. <charset> should be a valid character
189set as described in the MIME RFC in upper case characters.
190.PP
191The
192.B -n
193flags tells
194.B identd
195to always return user numbers instead of user names if you wish to
196keep the user names a secret.
197.PP
198The
199.B -N
200flag makes
201.B identd
202check for a file ".noident" in each homedirectory for a user which the
203daemon is about to return the user name for. It that file exists then the
204daemon will give the error
205.B HIDDEN-USER
206instead of the normal USERID response.
207.PP
208.B -m
209flag makes
210.B identd
211use a mode of operation that will allow multiple requests to be
212processed per session. Each request is specified one per line and
213the responses will be returned one per line. The connection will not
214be closed until the connecting part closes it's end of the line.
215PLEASE NOTE THAT THIS MODE VIOLATES THE PROTOCOL SPECIFICATION AS
216IT CURRENTLY STANDS.
217.PP
218The
219.B -d
220flag enables some debugging code that normally should NOT
221be enabled since that breaks the protocol and may reveal information
222that should not be available to outsiders.
223.PP
224.B kernelfile
225defaults to the normally running kernel file.
226.PP
227.B kmemfile
228defaults to the memory space of the normally running kernel.
229.SH SEE ALSO
230.BR inetd.conf (5)
231.SH BUGS
232The handling of fatal errors could be better.
233.PP
234If the
235.B -N
236flag is specified and a user's ".noident" file is not accessible,
237then ident information regarding that user will be returned
238if requested.