Документ взят из кэша поисковой машины. Адрес оригинального документа : http://hea-www.harvard.edu/~fine/Tech/cs1.2/conserver.8
Дата изменения: Thu Aug 6 21:16:59 1998
Дата индексирования: Tue Oct 2 07:02:06 2012
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п
.\" @(#)conserver.8 01/06/91 OSU CIS; Thomas A. Fine
.TH CONSERVER 8 "6 January 1991" "OSU/CIS"
.SH NAME
conserver \- console server
.SH SYNOPSIS
.B conserver [dummy argument]
.SH DESCRIPTION
.B Conserver
is the server for the
.IR console (1)
program. It provides remote access to the server consoles, and logs all
console data. When started,
it forks a child for each group in /etc/constab, and assigns each process a
port number to listen on. If
.B conserver
is started with one or more arguments, the children will attempt to change
their arguments so that a
.IR ps (1)
will reflect which servers each process is associated with. This argument
should be at least fourty characters to be safe. When
.IR console (1)
is used to make a connection, the following protocol is executed:
.IP 1)
The client program attaches to the parent server process, and sends it a server
name, followed by a carriage return (`\\n').
.IP 2)
The server program read up to a carriage return, and attempts to find this
server. If it finds it, it sends back the port number this server can be
reached at (in ascii). If it is not found, the message `Server not found' is
sent back.
.IP 3)
The first connection is broken, and the client program makes a connection to
the port number returned by the server program. It then sends the
desired server, the user name,
source machine, desired command, and password (either operator or root).
These are sent seperated by colons, and followed by a carriage return.
.IP 4)
If the requested command is `who', the server returns the information without
validating the password, and breaks the connection.
Otherwise, the server checks the password, and if it is valid
it then executes the requested command. If
the password is not valid, the server returns the message `Sorry' and breaks
the connection.
.PP
.B Conserver
completely controls the connection once established. All handling of escape
sequenes is done at this end.
.PP
The
.B conserver
parent process will automatically respawn any child process that dies. If the
parent process receives a SIGTERM, it will kill all its children with the same.
.PP
In the case of multiple console servers,
.IR console (1)
will repeat step one above until it either finds the console it wants, or
runs out of console servers.
.SH FILES
/etc/constab - description of console terminal lines
.br
/n/pun/0/console/* - log files for console terminals
.br
/n/pun/0/console/consolog - console usage log file
.br
/dev/tty[hijk]? - terminal line device files
.SH "SEE ALSO"
console(1), constab(5)
.SH BUGS
The remote machine is not validated carefully.
.SH AUTHOR
Thomas A. Fine, Ohio State Computer Science.