From owner-freebsd-questions Fri Jul 7 10:46:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ahab.COM (gw1-75ml.themediatc.com [204.143.179.2]) by hub.freebsd.org (Postfix) with ESMTP id EF7A837C161 for ; Fri, 7 Jul 2000 10:46:50 -0700 (PDT) (envelope-from luser@ahab.com) Received: from localhost (moxie@localhost) by ahab.COM (8.9.3/8.9.3) with ESMTP id OAA01560; Fri, 7 Jul 2000 14:45:00 -0400 (EDT) (envelope-from luser@ahab.com) Date: Fri, 7 Jul 2000 14:45:00 -0400 (EDT) From: Jason T X-Sender: moxie@localhost To: "Richard E. Hawkins" Cc: Michael , freebsd-questions@FreeBSD.ORG Subject: Re: allowing ftp logins but not shell logins In-Reply-To: <200007071730.NAA99997@fac13.ds.psu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Set /sbin/nologin as the shell! You need to put it into /etc/shells for this to work... Even more restrictive, you can set up semi-anonymous ftp... check man ftpd for this, but basically, by creating incoming and pub directories for an ftp-only user and putting the username into /etc/ftpchroot, you can restrict it further so that users can upload files into incoming and download files from pub, but they must log in... So it's like anonymous ftp, but with a login. Of course, if you use any ported ftp daemons, like the popular (and security-buggy) wu-ftpd, refer to the appropriate manpages. On Fri, 7 Jul 2000, Richard E. Hawkins wrote: > > > What I would like to have is something where persons can drop off files in > > a certain directory and the files would be owned by a user foo or by a > > group foo. How can I go about setting this up. Pointers to man pages or > > anything else would be greatly appreciated. > > I can't tell you whether or not it's the *best* way, but you can make > their login shell /usr/bin/false, which means that a succesful login > merely runs false and exits . . . > > hawk > > > > > 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