cml0464@isc.rit.edu (C.M. Leung ) (12/15/90)
Hi: 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. CML
rickert@mp.cs.niu.edu (Neil Rickert) (12/17/90)
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 <rickert@cs.niu.edu> Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940