From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2895a150f29e2039 X-Google-Attributes: gidfee84,public From: dct@odin.mda.uth.tmc.edu (David C. Tuttle) Subject: Re: rsh, hosts.equiv, and .rhosts question Date: 1995/08/28 Message-ID: #1/1 X-Deja-AN: 109003805 references: <41iv82$1vm@nntp5.u.washington.edu> content-type: text/plain;charset=US-ASCII organization: University of Texas M.D. Anderson Cancer Center mime-version: 1.0 newsgroups: comp.unix.osf.osf1 stevew@dougal.logica.co.uk (Steve Wyeth) wrote: > engj@u.washington.edu (Jimmy Eng) writes: >> >> The problem is that one of the three workstations won't allow >> rsh/rlogin to work (i.e. I get "permission denied" or a password >> is required). So, any idea what my problem is? Are there >> other files that control remote access besides the $USER/.rhosts >> or /etc/hosts.equiv files? > > I've just seen that for myself... We had 5 machines, all with pretty > similar configurations but one machine couldn't rsh to one of the > others. All other combinations (including the reverse) was fine. > In the end, the problem disappeared by removing the entry for > the client in the server's /etc/hosts file (we're using DNS as well, > so it made no difference - the IP address in the hosts file was > correct, by the way). Are the hostnames listed in their short form or their fully qualified form? That seems to make a difference in some implementations of UNIX (IBM's AIX comes to mind). And Digital UNIX is sensitive about the order in which these are listed in the /etc/hosts file (list the full name first, then the short name and any nicknames the host has). This would help explain why removing a entry from /etc/hosts might fix things -- if the entry was in the wrong order and rsh consulted it, it might not work, whereas a DNS entry would return a fully qualified hostname that works OK. I tell people here to have two .rhosts entries for each machine, one in the short form, one in the fully qualified form, and that seems to satisfy our heterogeneous network's rsh needs. (Definitions, in case you need them: the "short form" is just the single hostname (in our case, "odin"); a "fully qualified" name is with the network part attached, like "odin.mda.uth.tmc.edu".) -- David C. Tuttle, Biomathematics ----> dct@odin.mda.uth.tmc.edu <---- The University of Texas M.D. Anderson Cancer Center +1 713 792 2606 Mail Stop 237, 1515 Holcombe Boulevard, Houston, TX 77030-4096 USA Today's anagram of "David Charles Tuttle" is: HE'D LAID VAST CLUTTER