Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!pacbell.com!ucsd!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.misc Subject: Re: How to set up .rhosts? Message-ID: <1990Dec16.172120.7915@mp.cs.niu.edu> Date: 16 Dec 90 17:21:20 GMT References: <1990Dec14.224408.13211@isc.rit.edu> Distribution: usa Organization: Northern Illinois University Lines: 25 In article <1990Dec14.224408.13211@isc.rit.edu> cml0464@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 Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940