From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 06:43:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F5CC16A4CE for ; Mon, 9 Feb 2004 06:43:51 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CEEF43D1D for ; Mon, 9 Feb 2004 06:43:51 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (sccrmhc13) with ESMTP id <2004020914435001600f64ote>; Mon, 9 Feb 2004 14:43:50 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 3C8CE95; Mon, 9 Feb 2004 09:43:50 -0500 (EST) Sender: lowell@be-well.ilk.org To: Daniela References: <200402081631.18754.dgw@liwest.at> From: Lowell Gilbert Date: 09 Feb 2004 09:43:50 -0500 In-Reply-To: <200402081631.18754.dgw@liwest.at> Message-ID: <44fzdk1ffd.fsf@be-well.ilk.org> Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: questions@freebsd.org Subject: Re: Can't start rshd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 14:43:51 -0000 Daniela writes: > I'm having problems starting rshd. I tried it on two different computers (yes, > I know about the security risks, but the port is firewalled off). > I can't use alternatives because some software I'm using depends on it. > > The error is: It terminates with status 1 and sets errno to 38 (ENOTSOCK) > = Socket operation on non-socket. It fails on the following function call: > getpeername(0, (struct sockaddr *)&from, &fromlen) > > I'm no expert, but it looks like this can't work. Is this a bug, or is my > installation faulty? BTW, I'm starting rshd with no arguments. You're not starting it with a socket, like it expects. Normally, rshd(8) is started from inetd.conf(5).