From owner-freebsd-questions Mon Sep 18 21:43:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id D8B8C37B423 for ; Mon, 18 Sep 2000 21:43:34 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id JAA08731 for ; Tue, 19 Sep 2000 09:01:15 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e8J4hTR29806 for freebsd-questions@freebsd.org; Tue, 19 Sep 2000 08:43:29 +0400 Date: Tue, 19 Sep 2000 08:43:29 +0400 From: Igor Roboul To: FreeBSD questions Subject: Re: restricting login access to ftp only Message-ID: <20000919084329.B29692@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: FreeBSD questions References: <39C64D3C.F2B37EC2@planetwe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <39C64D3C.F2B37EC2@planetwe.com>; from drew@planetwe.com on Mon, Sep 18, 2000 at 12:13:32PM -0500 X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Sep 18, 2000 at 12:13:32PM -0500, Drew Sanford wrote: > I would like to be able to restrict access of some users to ftp only for > a certain system, thus allowing them to ftp information to and from the > server, but not gain shell access. Each user needs to be able to access > information for them, placed into their home directory. I thought at > first that using a shell of /sbin/nologin would work, but that denies > ftp access as well. Can anyone point me towards some documentation on > how to do this? Thanks. Add /sbin/nologin to /etc/shells (or add /bin/false to /etc/shells, and set user shell to /bin/false) Then you'll can use /sbin/nologin for users without login access at all. -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message