From owner-freebsd-questions Thu Oct 10 12:36:40 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA10827 for questions-outgoing; Thu, 10 Oct 1996 12:36:40 -0700 (PDT) Received: from al.imforei.apana.org.au (pjchilds@al.imforei.apana.org.au [202.12.89.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA10817 for ; Thu, 10 Oct 1996 12:36:32 -0700 (PDT) Received: (from pjchilds@localhost) by al.imforei.apana.org.au (8.8.0/8.7.3) id FAA02335; Fri, 11 Oct 1996 05:06:03 +0930 (CST) From: Peter Childs Message-Id: <199610101936.FAA02335@al.imforei.apana.org.au> Subject: Re: rsh ... permission denied oddity In-Reply-To: <19961010191816.19736.qmail@mediacity.com> from "brian@mediacity.com" at "Oct 10, 96 12:18:16 pm" To: brian@mediacity.com Date: Fri, 11 Oct 1996 05:06:02 +0930 (CST) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > In article <199610092258.PAA29757@MediaCity.com> you wrote: > > : How does one specify the host and remote user name in the .rhosts > > : file? > > Peter Childs wrote: > > In your .rhosts file > > hostone.domain1.org username1 > > hosttwo.otherplace username2 > > Is this in the man pages? Hmm... rlogin shows reference to rlogind... the man page contains Once the source port and address have been checked, rlogind proceeds with the authentication process described in rshd(8). It then allocates a so we check out rshd(8)... 8. Rshd then validates the user using ruserok(3), which uses the file /etc/hosts.equiv and the .rhosts file found in the user's home di- rectory. The -l option prevents ruserok(3) from doing any valida- tion based on the user's ``.rhosts'' file, unless the user is the superuser. hmm.. off to ruserok(3)... machine name is listed in the ``hosts.equiv'' file, or the host and re- mote user name are found in the ``.rhosts'' file; otherwise iruserok() and examining /usr/share/skel/dot.rhosts (the template for .rhosts) # $Id: dot.rhosts,v 1.3 1996/09/21 21:35:47 wosch Exp $ # # .rhosts - trusted remote host name and user data base # # see hosts.equiv(5), rsh(1), rlogin(1), rcp(1) # # This file should NOT be group or other readable. # OtherMachine # OtherMachine myFriend so I guess its there.. just a bit hidden and not too clear.... If your having some problems you can't figure the process for authenticating is spelt out in the rshd/rlogind man pages, and the code for the ruserok function is in /usr/src/lib/libc/net/rcmd.c Regards, Peter -- Peter Childs --- http://www.imforei.apana.org.au/~pjchilds Finger pjchilds@al.imforei.apana.org.au for public PGP key Drag me, drop me, treat me like an object!