Date: Thu, 14 Apr 2005 16:52:41 -0400 (EDT) From: Michael Edenfield <kutulu@kutulu.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/79935: security/openssh gives bad instructions on starting sshd from ports. Message-ID: <20050414205241.334EC92@basement.kutulu.org> Resent-Message-ID: <200504142100.j3EL0ljr030637@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050414205241.334EC92>