From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 29 Apr 2022 08:49:26 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nkKRU-001jUg-3f for lore@lore.pengutronix.de; Fri, 29 Apr 2022 08:49:26 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nkKRR-0003bm-SH; Fri, 29 Apr 2022 08:49:25 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkKQz-0003bd-Lx; Fri, 29 Apr 2022 08:48:57 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nkKR0-005teX-9q; Fri, 29 Apr 2022 08:48:56 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nkKQx-005N0n-Jy; Fri, 29 Apr 2022 08:48:55 +0200 Date: Fri, 29 Apr 2022 08:48:55 +0200 From: Michael Olbrich To: Ian Abbott , ptxdist@pengutronix.de Message-ID: Mail-Followup-To: Ian Abbott , ptxdist@pengutronix.de References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] dropbear and sftp-server mismatch X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi, On Fri, Apr 29, 2022 at 07:33:14AM +0200, Alexander Dahl wrote: > Am Thu, Apr 28, 2022 at 07:23:09PM +0100 schrieb Ian Abbott: > > Hi there, > > > > Since scp now defaults to using the SFTP protocol which is not built in to > > dropbear, I thought I'd configure my platform to enable OPENSSH_SFTP_SERVER, > > but I ran into a 'gotcha'. The server gets installed as > > "/usr/sbin/sftp-server" (and `--libexecdir` is configured as "/usr/sbin"), > > This happens in the OpenSSH package, where libexecdir is configured as > /usr/sbin since 2003 … wow. > > > but dropbear looks for it at "/usr/libexec/sftp-server". > > Yes. > > > The path to the sftp-server can be set in dropbear by defining the > > `SFTPSERVER_PATH` macro in "localoptions.h" file (constructed by > > "rules/dropbear.make"). That is not currently done, but is easy enough to > > add. I was wondering whether it should be made configurable by a new option > > in "rules/dropbear.in" or not (using "/usr/sbin/sftp-server" as the default > > value). > > I would tend to hardcode it into rules/dropbear.make … I don't see a > reason to have that as configurable menu option, do you? Because we > probably won't change the path in openssh package, and to my knowledge > there's no alternative to the one from openssh? I agree. No need for an option. > Care to send a patch? That would be great. Michael -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |