From owner-freebsd-questions Mon May 6 19:51:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA03215 for questions-outgoing; Mon, 6 May 1996 19:51:33 -0700 (PDT) Received: from riley-net170-164.uoregon.edu (riley-net170-164.uoregon.edu [128.223.170.164]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA03210 for ; Mon, 6 May 1996 19:51:30 -0700 (PDT) Received: (from dwhite@localhost) by riley-net170-164.uoregon.edu (8.6.12/8.6.12) id TAA28559; Mon, 6 May 1996 19:55:15 -0700 Date: Mon, 6 May 1996 19:55:14 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Joe Nieten cc: questions@FreeBSD.ORG Subject: Re: /etc/shells In-Reply-To: <199605051555.KAA00202@defiant.vhm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 4 May 1996, Joe Nieten wrote: > Is ftpd the only program that reads the /etc/shells file? adduser, and anything else that makes use of the getusershell(3) call. (from a cursory look over the man pages: shells(5) and getusershell(3)) > If I wanted to restrict my ftp access to those users who only had the > /bin/false shell, could I put just that in my /etc/shells file? What side > effects would I have? Just put that in there; the computer won't care. This is my ftp entry from /etc/passwd (don't ding me about the password!): ftp:*:65533:65533:anonymous FTP user:/usr/anon:/nonexistent Note the shell is /nonexistent. Works great. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major