don't open target for writing if we're just verifying the tapes
[unix-history] / usr / src / usr.bin / rlogin / rlogin.1
CommitLineData
3f1cd9e6
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
3bc67b6e 5.\" @(#)rlogin.1 6.8 (Berkeley) %G%
3f1cd9e6 6.\"
c4e935d1 7.TH RLOGIN 1C ""
3f1cd9e6
KM
8.UC 5
9.SH NAME
10rlogin \- remote login
11.SH SYNOPSIS
12.B rlogin
13rhost [
14\fB\-e\fR\fI\|c\fR
15] [
c4e935d1
KM
16.B \-8
17] [
50964ee5
JB
18.B \-L
19] [
3f1cd9e6
KM
20.B \-l
21username ]
22.br
23rhost [
24\fB\-e\fR\fIc\fR
25] [
c4e935d1
KM
26.B \-8
27] [
50964ee5
JB
28.B \-L
29] [
3f1cd9e6
KM
30.B \-l
31username ]
32.SH DESCRIPTION
33.I Rlogin
34connects your terminal on the current local host system
35.I lhost
36to the remote host system
37.I rhost.
38.PP
39Each host has a file
40.I /etc/hosts.equiv
41which contains a list of \fIrhost\fR's with which it shares account names.
42(The host names must be the standard names as described in
43.IR rsh (1C).)
44When you
45.I rlogin
46as the same user on an equivalent host, you don't need
47to give a password.
48Each user may also have a private equivalence list in a file \&.rhosts
9afe8aba 49in his login directory. Each line in this file should contain an \fIrhost\fP
3f1cd9e6
KM
50and a \fIusername\fP separated by a space, giving additional cases
51where logins without passwords are to be permitted.
52If the originating user is not equivalent to the remote user, then
53a login and password will be prompted for on the remote machine as in
54.IR login (1).
55To avoid some security problems, the \&.rhosts file must be owned by
5154691a 56either the remote user or root.
3f1cd9e6 57.PP
9afe8aba 58The remote terminal type is the same as your local
3f1cd9e6 59terminal type (as given in your environment TERM variable).
9afe8aba
MK
60The terminal or window size is also copied to the remote system
61if the server supports the option,
62and changes in size are reflected as well.
3f1cd9e6
KM
63All echoing takes place at the remote site, so that (except for
64delays) the rlogin is transparent. Flow control via ^S and ^Q and
65flushing of input and output on interrupts are handled properly.
c4e935d1
KM
66The optional argument
67.B \-8
9afe8aba 68allows an eight-bit input data path at all times;
2606c598
JL
69otherwise parity bits are stripped except when the remote side's
70stop and start characters are other than ^S/^Q.
50964ee5
JB
71The argument
72.B \-L
73allows the rlogin session to be run in litout mode.
3f1cd9e6 74A line of the form ``~.'' disconnects from the remote host, where
c4e935d1
KM
75``~'' is the escape character.
76Similarly, the line ``~^Z'' (where ^Z, control-Z, is the suspend character)
77will suspend the rlogin session.
78Substitution of the delayed-suspend character (normally ^Y)
79for the suspend character suspends the send portion of the rlogin,
80but allows output from the remote system.
81A different escape character may
3f1cd9e6
KM
82be specified by the
83.B \-e
84option.
85There is no space separating this option flag and the argument
86character.
87.SH SEE ALSO
88rsh(1C)
89.SH FILES
90/usr/hosts/* for \fIrhost\fP version of the command
91.SH BUGS
db8b94d6 92More of the environment should be propagated.