Skip to main content

Use of the Protocol

2.1. Flow of events​

Finger is based on the Transmission Control Protocol, using TCP port 79 decimal (117 octal). A TCP connection is opened to a remote host on the Finger port. An RUIP becomes available on the remote end of the connection to process the request. The RUIP is sent a one line query based upon the Finger query specification. The RUIP processes the query, returns an answer, then closes the connection normally.

2.2. Data format​

Any data transferred MUST be in ASCII format, with no parity, and with lines ending in CRLF. This excludes other character formats such as EBCDIC, etc. This also means that any characters between ASCII 128 and ASCII 255 should truly be international data, not USASCII with the parity bit set.

2.3. Query specifications​

An RUIP MUST accept the entire Finger query specification.

The Finger query specification is defined:

        {Q1}    ::= [{U}] [/W] {C}

{Q2} ::= [{U}]{H} [/W] {C}

{U} ::= username

{H} ::= @hostname | @hostname{H}

{C} ::= <CRLF>

{H}, being recursive, means that there is no arbitrary limit on the number of @hostname tokens in the query. In examples of the {Q2} request specification, the number of @hostname tokens is limited to two, simply for brevity.

Be aware that {Q1} and {Q2} do not refer to a user typing "finger user@host" from an operating system prompt. It refers to the line that an RUIP actually receives. So, if a user types "finger user@host", the RUIP on the remote host receives "user", which corresponds to {Q1}.

As with anything in the IP protocol suite, "be liberal in what you accept".

2.4. RUIP {Q2} behavior​

A query of {Q2} is a request to forward a query to another RUIP. An RUIP MUST either provide or actively refuse this forwarding service (see section 3.2.1). If an RUIP provides this service, it MUST conform to the following behavior:

Given that:

Host

opens a Finger connection to an RUIP on host

.

gives the

RUIP a query of type {Q2} (e.g., FOO@HOST1@HOST2).

It should be derived that:

Host

is the right-most host in (i.e., HOST2)

Query is the remainder of after removing the right-most "@hostname" token in the query (i.e., FOO@HOST1)

And so:

The

RUIP then must itself open a Finger connection to

, using .

The

RUIP must return any information received from to

via .

The

RUIP must close in normal circumstances only when the

RUIP closes .

2.5. Expected RUIP response​

For the most part, the output of an RUIP doesn't follow a strict specification, since it is designed to be read by people instead of programs. It should mainly strive to be informative.

Output of ANY query is subject to the discussion in the security section.

2.5.1. {C} query​

A query of {C} is a request for a list of all online users. An RUIP MUST either answer or actively refuse (see section 3.2.2). If it answers, then it MUST provide at least the user's full name. The system administrator SHOULD be allowed to include other useful information (per section 3.2.3), such as:

  • terminal location

  • office location

  • office phone number

  • job name

  • idle time (number of minutes since last typed input, or since last job activity).

2.5.2. {U}{C} query​

A query of {U}{C} is a request for in-depth status of a specified user {U}. If you really want to refuse this service, you probably don't want to be running Finger in the first place.

An answer MUST include at least the full name of the user. If the user is logged in, at least the same amount of information returned by {C} for that user MUST also be returned by {U}{C}.

Since this is a query for information on a specific user, the system administrator SHOULD be allowed to choose to return additional useful information (per section 3.2.3), such as:

  • office location

  • office phone number

  • home phone number

  • status of login (not logged in, logout time, etc)

  • user information file

A user information file is a feature wherein a user may leave a short message that will be included in the response to Finger requests. (This is sometimes called a "plan" file.) This is easily implemented by (for example) having the program look for a specially named text file in the user's home directory or some common area; the exact method is left to the implementor. The system administrator SHOULD be allowed to specifically turn this feature on and off. See section 3.2.4 for caveats.

There MAY be a way for the user to run a program in response to a Finger query. If this feature exists, the system administrator SHOULD be allowed to specifically turn it on and off. See section 3.2.5 for caveats.

2.5.3. {U} ambiguity​

Allowable "names" in the command line MUST include "user names" or "login names" as defined by the system. If a name is ambiguous, the system administrator SHOULD be allowed to choose whether or not all possible derivations should be returned in some fashion (per section 3.2.6).

2.5.4. /W query token​

The token /W in the {Q1} or {Q2} query types SHOULD at best be interpreted at the last RUIP to signify a higher level of verbosity in the user information output, or at worst be ignored.

2.5.5. Vending machines​

Vending machines SHOULD respond to a {C} request with a list of all items currently available for purchase and possible consumption. Vending machines SHOULD respond to a {U}{C} request with a detailed count or list of the particular product or product slot. Vending machines should NEVER NEVER EVER eat requests. Or money.