From owner-freebsd-questions@FreeBSD.ORG Mon Jun 23 08:30:38 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 7D27637B401 for ; Mon, 23 Jun 2003 08:30:38 -0700 (PDT) Received: from ensim1.kuruption.net (kuruption.net [64.246.28.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E80A43FF5 for ; Mon, 23 Jun 2003 08:30:37 -0700 (PDT) (envelope-from raymond@sundland.com) Received: from kuruption.net (pcp03026213pcs.plnfld01.nj.comcast.net [68.85.62.182]) by ensim1.kuruption.net (8.11.6/8.11.6) with ESMTP id h5NFUaR00710; Mon, 23 Jun 2003 11:30:36 -0400 Received: by kuruption.net (Postfix, from userid 50) id 2625B8D9E4; Mon, 23 Jun 2003 11:30:31 -0400 (EDT) Received: from sundland.com (ensim1.kuruption.net [64.246.28.125]) by kuruption.net (Postfix) with ESMTP id 48A118D9DF; Mon, 23 Jun 2003 11:30:29 -0400 (EDT) Message-ID: <3EF71C46.1060605@sundland.com> Date: Mon, 23 Jun 2003 11:27:02 -0400 From: Raymond Sundland User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rob Lahaye References: <20030613125624.87202.qmail@web13407.mail.yahoo.com> <3EF7072C.7020908@users.sourceforge.net> <3EF707EB.1060406@sundland.com> <3EF70B5B.1020508@users.sourceforge.net> In-Reply-To: <3EF70B5B.1020508@users.sourceforge.net> X-Enigmail-Version: 0.73.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.2 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, TO_BE_REMOVED_REPLY,USER_AGENT,USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG version=2.44 X-Spam-Level: cc: freebsd-questions@FreeBSD.ORG 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 15:30:38 -0000 Rob, If you want a nice message, I suggest creating a class in /etc/logins.conf which point to a /etc/issues.sftponly file where the user gets a nice message, which you deem appropriate. Secondly, as far as chroot, I don't believe OpenSSH supports chroot natively, however I know there is a patch floating around (I believe in the contrib/ directory of the openssh portable tarball) which will patch openssh to support chroot'd environments. You will need to recompile the openssh portable distribution, however. Rob Lahaye wrote: > 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. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"