From owner-freebsd-questions@FreeBSD.ORG Mon Jun 23 07:14:37 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6C9437B401 for ; Mon, 23 Jun 2003 07:14:37 -0700 (PDT) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 9D63343FDD for ; Mon, 23 Jun 2003 07:14:36 -0700 (PDT) (envelope-from lahaye@users.sourceforge.net) Received: (snipe 11007 invoked by alias); 23 Jun 2003 14:21:22 -0000 Received: from lahaye@users.sourceforge.net with Spamsniper2.0 (Processed in 0.012532 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 23 Jun 2003 14:21:22 -0000 X-RCPTTO: freebsd-questions@FreeBSD.ORG, Received: from users.sourceforge.net ([147.46.44.183]) by sis1.snu.ac.kr (8.12.9/8.12.9) with ESMTP id h5NECPuR309784 for ; Mon, 23 Jun 2003 23:12:25 +0900 Message-ID: <3EF70B5B.1020508@users.sourceforge.net> Date: Mon, 23 Jun 2003 23:14:51 +0900 From: Rob Lahaye Organization: Seoul National University - South Korea User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030518 X-Accept-Language: en-us, en, ko-kr MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG References: <20030613125624.87202.qmail@web13407.mail.yahoo.com> <3EF7072C.7020908@users.sourceforge.net> <3EF707EB.1060406@sundland.com> In-Reply-To: <3EF707EB.1060406@sundland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: creating ftp users! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2003 14:14:38 -0000 Raymond Sundland wrote: > Rob, > > You can try setting the user's shell to /usr/libexec/sftp-server (or > wherever the sftp-server binary exists under FreeBSD). > > This will give the user ability to SFTP into the box, but without a > normal shell. /usr/lib/exec/sftp-server should be added to /etc/shells, > too. Almost works ;). Doing what you suggest, I can sftp to the account, but when I do ssh to that account, I get the regular login message but no prompt. Something seems to hang. When I type something and hit return, I get: bad message Connection to foo.bar.com closed. $ It somehow blocks ssh login indeed, but it's not very nice! BTW will sftp also work with the /etc/chroot file? Thanks, Rob.