If hostname is not specified, rlogin looks at the string by which it is invoked and uses it as the host name. This feature allows a user to create a link to /usr/bin/rlogin that can be named after a frequently accessed host. For example, the symbolic link $HOME/bin/marble pointing to /usr/bin/rlogin can be invoked as marble (if the user's PATH variable contains $HOME/bin).
Each remote machine may have a file named /etc/hosts.equiv containing a list of trusted host names with which it shares user names. Users with the same user name on both the local and remote machine may rlogin from the machines listed in the remote machine's /etc/hosts.equiv file without supplying a password. Individual users may set up a similar private equivalence list with the file .rhosts in their home directories. Each line in this file contains two names: a hostname and a username separated by a space. An entry in a remote user's .rhosts file permits the user named username who is logged into hostname to log in to the remote machine as the remote user without supplying a password. If the name of the local host is not found in the /etc/hosts.equiv file on the remote machine, and the local user name and host name are not found in the remote user's .rhosts file, then the remote machine will prompt for a password. Hostnames listed in /etc/hosts.equiv and .rhosts files must be the official host names listed in the hosts data base; nicknames may not be used in either of these files.
To counter security problems, the .rhosts file must be owned by either the remote user or by a privileged user.
The remote terminal type is the same as your local terminal type (as given in your environment TERM variable). The terminal or window size is also copied to the remote system if the server supports the option, and changes in size are reflected as well. All echoing takes place at the remote site, so that (except for delays) the remote login is transparent. Flow control using <ctrl><S> and <ctrl><Q> and flushing of input and output on interrupts are handled properly.
If the -L, -7, and -8 options are not used, your local opost and istrip stty settings are maintained.
When a line of the form hostname username appears in
hosts.equiv, the user named may log in as anyone in the
local password file by using the command
rlogin -l username hostname
where username is any valid user name in the passwd file.
This implementation can only use the TCP network service.