From owner-freebsd-questions@FreeBSD.ORG Thu May 11 11:37:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6170016A440 for ; Thu, 11 May 2006 11:37:17 +0000 (UTC) (envelope-from shiemstra@h2.com) Received: from hermes.h2web.com (mx1.h2web.com [67.132.72.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 711EF43D7D for ; Thu, 11 May 2006 11:36:43 +0000 (GMT) (envelope-from shiemstra@h2.com) Received: (qmail 8841 invoked by uid 1011); 11 May 2006 07:36:37 -0400 Received: from unknown (HELO hanky) (192.168.1.3) by hermes.h2web.com with SMTP; 11 May 2006 07:36:37 -0400 From: "Scott Hiemstra" To: Date: Thu, 11 May 2006 07:38:51 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <44628357.3020402@calarts.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcZ0kNQlCUey1ATaRCKJ9ODjSxpAMQAXcSjg Message-Id: <20060511113643.711EF43D7D@mx1.FreeBSD.org> Subject: RE: ftp server with no shell accounts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 11:37:20 -0000 > I tried the default ftp server with FreeBSD 5.4 and users > with no shell > accounts but it does not work. > > Does anyone know of a ftp server that users would still have home > directories but no shell access /sbin/nologin and that could still > upload files to there home directories. The default ftpd will work with a little tweaking. 1. touch /bin/ftpshell 2. echo "/bin/ftpshell" >> /etc/shells 3. When you add your users, set their shell to /bin/ftpshell 4. echo USERNAME >> /etc/ftpchroot The users will be able to login via ftp and nothing else because there shell is a crap fake shell. The ftpchroot will lock them into their home directory very effectively. Scott