From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 14 21:00:47 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ACBF16A4D0 for ; Thu, 14 Apr 2005 21:00:47 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4055D43D55 for ; Thu, 14 Apr 2005 21:00:47 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3EL0lcX030647 for ; Thu, 14 Apr 2005 21:00:47 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3EL0ljr030637; Thu, 14 Apr 2005 21:00:47 GMT (envelope-from gnats) Resent-Date: Thu, 14 Apr 2005 21:00:47 GMT Resent-Message-Id: <200504142100.j3EL0ljr030637@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Edenfield Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 034BD16A4CE for ; Thu, 14 Apr 2005 20:52:43 +0000 (GMT) Received: from basement.kutulu.org (211.215.33.65.cfl.res.rr.com [65.33.215.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81F5543D1D for ; Thu, 14 Apr 2005 20:52:42 +0000 (GMT) (envelope-from kutulu@kutulu.org) Received: by basement.kutulu.org (Postfix, from userid 1001) id 334EC92; Thu, 14 Apr 2005 16:52:41 -0400 (EDT) Message-Id: <20050414205241.334EC92@basement.kutulu.org> Date: Thu, 14 Apr 2005 16:52:41 -0400 (EDT) From: Michael Edenfield To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/79935: security/openssh gives bad instructions on starting sshd from ports. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Michael Edenfield List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2005 21:00:47 -0000 >Number: 79935 >Category: ports >Synopsis: security/openssh gives bad instructions on starting sshd from ports. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 14 21:00:46 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Kutulu >Release: FreeBSD 5.4-PRERELEASE i386 >Organization: >Environment: System: FreeBSD basement.kutulu.org 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #10: Wed Mar 2 22:02:43 EST 2005 root@basement.kutulu.org:/usr/obj/usr/src/sys/GATEWAY i386 >Description: The openssh pkg-message suggests doing two things to get the openssh port to run: 1. Build with NO_OPENSSH 2. Set the following in /etc/rc.conf: sshd_program=/usr/local/sbin/sshd and make sshd_enable="YES" However, these two are mutually exclusive: when building with NO_OPENSSH, /etc/rc.d/sshd is no longer installed and the /etc/rc.conf variables are never read. Either the base sshd needs to be installed, or the sshd.sh script (which is not yet reading from /etc/rc.conf) must be activated in /usr/local/etc/rc.d. Following the port instructions as written will prevent openssh from starting. >How-To-Repeat: >Fix: Options I can think of are: 1) Fix pkg-message to not recommend NO_OPENSSH 2a) Fix pkg-message to recommend activating the port's sshd.sh.sample script 2b) Fix the ports sshd.sh script to read /etc/rc.conf (optional) (Continue to recommend editing /etc/rc.conf in case the base sshd gets installed again later.) 3) Fix the base to install /etc/rc.d/sshd regardless of NO_OPENSSH. >Release-Note: >Audit-Trail: >Unformatted: