From owner-freebsd-questions Thu Jun 20 23:42: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from matrix.zssm.zp.ua (matrix.zssm.zp.ua [212.8.32.10]) by hub.freebsd.org (Postfix) with ESMTP id 5C29F37B486 for ; Thu, 20 Jun 2002 23:40:48 -0700 (PDT) Received: from server.hermes-comp.zp.ua (germes-comp.zssm.zp.ua [212.8.32.132] (may be forged)) by matrix.zssm.zp.ua (8.11.3/8.11.3) with ESMTP id g5L6aJo58447; Fri, 21 Jun 2002 09:36:23 +0300 (EEST) (envelope-from stalker@hermes-comp.zp.ua) Received: from localhost (localhost [127.0.0.1]) by server.hermes-comp.zp.ua (Postfix) with ESMTP id 73DC838302; Fri, 21 Jun 2002 09:40:56 +0300 (EEST) Date: Fri, 21 Jun 2002 09:40:56 +0300 (EEST) From: Alexander V Zubchenko To: Michael Grant Cc: Subject: Re: ssh/ftp only accounts In-Reply-To: <200206202017.g5KKHR814373@splat.grant.org> Message-ID: <20020621093512.W21649-100000@server.hermes-comp.zp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings! On Thu, 20 Jun 2002, Michael Grant wrote: > Can someone please tell me what the recommended way to set up an > account such that the user can only ftp and scp to a chrooted > directory? (i.e. no login shell). > Here it is (imho, of course): 1. Create user with shell like /bin/date or something like this (You may want to add this command to /etc/shells). 2. Allow this user access to desired services. Hope this help. If You need additional info on getting access to ftp/scp, don't hesitage and mail me. With best regards, Alexander V Zubchenko, E-Mail: stalker@hermes-comp.zp.ua System Administrator, WWW: http://www.hermes-comp.zp.ua/ Hermes-comp, Ukraine, Zaporizhzhya, Geroev Stalingrada 50 phone/fax: +380 612 64-19-72 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message