From owner-cvs-all@FreeBSD.ORG Wed Oct 3 13:07:09 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC4BE16A419; Wed, 3 Oct 2007 13:07:09 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E022C13C4B9; Wed, 3 Oct 2007 13:07:09 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l93D79nX040756; Wed, 3 Oct 2007 13:07:09 GMT (envelope-from edwin@repoman.freebsd.org) Received: (from edwin@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l93D79qR040755; Wed, 3 Oct 2007 13:07:09 GMT (envelope-from edwin) Message-Id: <200710031307.l93D79qR040755@repoman.freebsd.org> From: Edwin Groothuis Date: Wed, 3 Oct 2007 13:07:09 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/shells/scponly Makefile ports/shells/scponly/files scponlyc.in X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 13:07:10 -0000 edwin 2007-10-03 13:07:09 UTC FreeBSD ports repository Modified files: shells/scponly Makefile Added files: shells/scponly/files scponlyc.in Log: scponlyc sftp support doesn't work without minimal devfs in chroot dir I'm finding that recently-created scponlyc chroots do not provide a sufficient environment for /usr/libexec/sftp-server to run. The sftp client symptom is just: $ sftp user@www Connecting to www... Password: Connection closed $ The cause appears to be that recent versions of /usr/libexec/sftp-server will complain about of lack of access to /dev/null and exit, resulting in the closed connection witnessed by the remote client. The solution appears to be to create a devfs in the scponlyc chroot. To automatically create at boot time a devfs in the home directory of each user of scponlyc, I have chosen to put a script in /usr/local/etc/rc.d. PR: ports/108009 Submitted by: Jim Long Approved by: maintainer timeout Revision Changes Path 1.27 +10 -9 ports/shells/scponly/Makefile 1.1 +56 -0 ports/shells/scponly/files/scponlyc.in (new)