How to set up .rhosts?

Neil Rickert rickert at mp.cs.niu.edu
Mon Dec 17 04:21:20 AEST 1990


In article <1990Dec14.224408.13211 at isc.rit.edu> cml0464 at ultb.rit.edu.isc.rit.edu (C.M. Leung ) writes:
>	I got a "login incorrect" when I tried executing a command on
>a remote host.  Can someone tell me how to set up the .rhosts file to
>work?  I was actually executing the rsh on an ultrix machine to a remote
>sparcstation.
>
 There is a library function gethostbyaddr(3).  Its function is to convert an
numeric internet address to a domain name.

 When you 'rlogin', this function is called to find your domain name, and check
against the domain names listed in /etc/hosts.equiv and in .rhosts.

 You must make sure that the entry in .rhosts is exactly what gethostbyaddr()
will return.  Depending on the version, gethostbyaddr() may get its information
from /etc/hosts, or from the DNS database.  It may or may not be case
independent in its comparison (better assume not).  There may be multiple
versions of gethostbyaddr() on your system, installed in different libraries.

 Good luck.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940



More information about the Comp.unix.misc mailing list