From owner-freebsd-bugs Thu Jan 17 11:40: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A74F37B417 for ; Thu, 17 Jan 2002 11:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0HJe1W63376; Thu, 17 Jan 2002 11:40:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7277E37B417 for ; Thu, 17 Jan 2002 11:37:44 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0HJbiS63102; Thu, 17 Jan 2002 11:37:44 -0800 (PST) (envelope-from nobody) Message-Id: <200201171937.g0HJbiS63102@freefall.freebsd.org> Date: Thu, 17 Jan 2002 11:37:44 -0800 (PST) From: "David P. Discher" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/34003: Hardcoded path for ssh-keygen in /etc/rc.network Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34003 >Category: misc >Synopsis: Hardcoded path for ssh-keygen in /etc/rc.network >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Thu Jan 17 11:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: David P. Discher >Release: FreeBSD 4.4 >Organization: >Environment: FreeBSD seven.dpdtech.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Thu Jan 17 12:23:54 CST 2002 root@seven.dpdtech.com:/build/src/sys/compile/borg_fbsd44_20020117a i386 >Description: I found this awhile back, in the /etc/rc.network file, the path to ssh-keygen is hardcoded to /usr/bin/ssh-keygen. The causes problems when trying to upgrade to new versions of OpenSSH from the ports collections. This seems to be a slight oversight. It might not be needed to change these files, but with the idea that the $sshd_program can be configured to a different location/version, but one can't point to the correct versions of the keygen program. >How-To-Repeat: Installing OpenSSH from the ports collections >Fix: 1. Create a port that installs into the base system (probably not the best solution) 2. Change the rc.conf $sshd_program, to $sshd_prefix. Then change /etc/rc and rc.network to use $sshd_prefix/sbin/sshd and $sshd_path/bin/ssh-keygen or simliar. 3. The ports collection should start the new versions of OpenSSH from /usr/local/etc/rc.d/ instead of /etc/rc (but this does not seem to be currently done. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message