From owner-freebsd-questions Thu May 6 4:10:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.digitalselect.net (mail.digitalselect.net [216.181.1.6]) by hub.freebsd.org (Postfix) with ESMTP id 2FC3514DFC for ; Thu, 6 May 1999 04:10:16 -0700 (PDT) (envelope-from adhir@forumone.com) Received: from digitalselect ([216.181.56.84]) by mail.digitalselect.net (8.8.7/8.8.7) with SMTP id HAA04983; Thu, 6 May 1999 07:10:09 -0400 Reply-To: From: "Alok K. Dhir" To: "dissonant" , Subject: RE: ftp-only script? Date: Thu, 6 May 1999 07:11:48 -0400 Message-ID: <000b01be97b1$3c327d60$5438b5d8@net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just change those users' shell to '/dev/null' and add it to the '/etc/shells' file. Or, if you want to be friendlier, make a shell script that echos 'sorry, only ftp on this account' or some such and save it as '/etc/ftponly'. Then set that as the shell and add it to '/etc/shells'. (ftp will not allow a login to an account with a shell that is not listed in /etc/shells). Al > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of dissonant > Sent: Wednesday, May 05, 1999 5:15 PM > To: freebsd-questions@FreeBSD.ORG > Subject: ftp-only script? > > > Does anyone have a simple shell script to allow certain users to connect > only via ftp? Thanks in advance. > > > [[ M i c h a e l L i e b e r m a n ]] > [[ d i s o w n e d @ l i n d a . p o m o n a . e d u ]] > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message