From owner-freebsd-questions Thu Feb 20 22: 0: 6 2003 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 65F7C37B401 for ; Thu, 20 Feb 2003 22:00:05 -0800 (PST) Received: from post-21.mail.nl.demon.net (post-21.mail.nl.demon.net [194.159.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8588C43FBD for ; Thu, 20 Feb 2003 22:00:04 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18m6E7-0005Od-00 for freebsd-questions@FreeBSD.ORG; Fri, 21 Feb 2003 06:00:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 48A6FC6B1 for ; Fri, 21 Feb 2003 07:00:02 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 07301E58 for ; Fri, 21 Feb 2003 06:59:50 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id AD4DD225C3; Fri, 21 Feb 2003 06:59:51 +0100 (CET) Date: Fri, 21 Feb 2003 06:59:51 +0100 From: Cliff Sarginson To: freebsd-questions@FreeBSD.ORG Subject: Re: ftp users - question Message-ID: <20030221055951.GA96171@raggedclown.net> References: <005d01c2d92d$8d70c990$0701a8c0@darryl> <20030220231312.GA66761@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030220231312.GA66761@grimoire.chen.org.nz> User-Agent: Mutt/1.5.3i X-Virus-Scanned: by AMaViS 0.3.12pre8 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 On Fri, Feb 21, 2003 at 12:13:12PM +1300, Jonathan Chen wrote: > On Thu, Feb 20, 2003 at 04:15:18PM -0600, Darryl Hoar wrote: > > Greetings, > > I have a machine setup running 4.7 - stable. It is an internal machine. > > How do I setup a user (so they can upload with ftp) but can't login at > > the shell ? Is this possible ? > > Set up the users with a non-existent shell (eg: /nonexistent), and add > the non-existent shell entry into /etc/shells. Conventionally such users woud be given a shell of "/sbin/nologin", which must also be added into the list contained in "/etc/shells". The program "/sbin/nologin" already exists, so no need to create it. -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message