ports/79935: security/openssh gives bad instructions on starting sshd from ports.

Michael Edenfield kutulu at kutulu.org
Thu Apr 14 21:00:47 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list