Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!dalvm41b.vnet.ibm.com!freese From: freese@dalvm41b.vnet.ibm.com ("Bradley T. Freese") Newsgroups: comp.unix.aix Subject: "rsh" question Message-ID: <9105141955.AA13490@ucbvax.Berkeley.EDU> Date: 14 May 91 19:52:39 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 28 johnk@locus.com (John Kim) writes: > When I tried to invoke rsh on a machine in different network, > I got error message "Permission Denied". > There are .rhosts files in local and remote machines and > entries are correct. Also I can telnet to the remote machine with > no problem. Why can't I do rsh on the remote machine? > This problem is not mentioned in the documention. > > Any clue? The classic pitfalls in doing 'rsh', 'rcp', 'rlogin', and remote printing all arise from bad hostname resolution. In particular, the worst culprit is reverse name resolution. To check this, do the following on *each* host: 1) For *every* other host, do "host ". You should get back something like otherhost.domain.domain.domain is 99.99.99.99 .... 2) For *every* other host, do "host ", where is the address of the host. You should get the same response as in 1). If you don't (like "address 99.99.99.99 NOT FOUND"), your reverse name resolution is not working. Without working resolution, the r* daemons cannot identify the host requesting the service, so it will deny permission.