Using Internet Services
Chapter 2 19
Logging into a Host with rlogin
Using rlogin
that you can log into the remote host without having to supply your
remote login name and password. Follow these steps:
1. If you do not know where your home directory is, log into the remote
host and issue this command to find out:
echo $HOME
2. Create a file called .rhosts in your home directory on the remote
host, if it does not already exist, and add the following line to it:
your_local_host's_name your_local_login_name
3. Issue the following command to make sure that your remote .rhosts
file is owned by you, the user:
ls -l .rhosts
4. Issue the following command to protect your remote .rhosts file so
only you can read it:
chmod 0400 .rhosts
5. Move to the parent directory of your home directory, and issue the
following command to protect your remote home directory so that no
one else can write to it:
chmod 0755
your_home_directory
Type man 4 hosts.equiv for more information on the .rhosts file.
CAUTION A $HOME/.rhosts file creates a significant security risk. Because of this,
its functionality may be disabled by the system administrator on the
remote host. If it has been disabled, your $HOME/.rhosts file will not
work even if it exists on your system.