From owner-freebsd-questions Fri Sep 28 1:47:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 97CB337B40D for ; Fri, 28 Sep 2001 01:47:54 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.245.137.135.Dial1.SanJose1.Level3.net [209.245.137.135]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id BAA16738; Fri, 28 Sep 2001 01:47:53 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f8S8lpc03253; Fri, 28 Sep 2001 01:47:51 -0700 (PDT) (envelope-from cjc) Date: Fri, 28 Sep 2001 01:47:51 -0700 From: "Crist J. Clark" To: cyu0635@hotmail.com Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: security .rhost, .rexec Message-ID: <20010928014751.I330@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <3BB3D440.280017F9@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BB3D440.280017F9@hotmail.com>; from cyu0635@hotmail.com on Thu, Sep 27, 2001 at 09:37:04PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Sep 27, 2001 at 09:37:04PM -0400, cyu0635@hotmail.com wrote: > Hi all > > I read a book what is the secruity and prevent the following services in > the system > > .rhosts > rexec > and > rlogin > > but don't teach how to do it. > So please teach me Disable the r-protocols in /etc/inetd.conf, #shell stream tcp nowait root /usr/libexec/rshd rshd #shell stream tcp6 nowait root /usr/libexec/rshd rshd #login stream tcp nowait root /usr/libexec/rlogind rlogind #login stream tcp6 nowait root /usr/libexec/rlogind rlogind #exec stream tcp nowait root /usr/libexec/rexecd rexecd (They are probably disabled on your system by default.) Or do not run inetd(8) at all by placing, inetd_enable="NO" In /etc/rc.conf. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message