From owner-freebsd-questions Fri Mar 8 15: 3:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from out4.mx.nwbl.wi.voyager.net (out4.mx.nwbl.wi.voyager.net [169.207.1.77]) by hub.freebsd.org (Postfix) with ESMTP id 4A5AE37B404 for ; Fri, 8 Mar 2002 15:03:48 -0800 (PST) Received: from shell.core.com (shell.core.com [169.207.1.89]) by out4.mx.nwbl.wi.voyager.net (8.11.1/8.11.4/1.7) with ESMTP id g28N3l579156 for ; Fri, 8 Mar 2002 17:03:47 -0600 (CST) Received: from localhost (raiden@localhost) by shell.core.com (8.11.6/8.11.6/1.3) with ESMTP id g28N3lb05767 for ; Fri, 8 Mar 2002 17:03:47 -0600 (CST) Date: Fri, 8 Mar 2002 17:03:47 -0600 (CST) From: Steven Lake X-X-Sender: raiden@shell.core.com To: freebsd-questions@FreeBSD.ORG Subject: Selectively forbidding login Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Ok, I've looked around and tried the suggestion to modify a user's login so that it reads /sbin/nologin for the shell to prevent user from logging into ssh, but it also blocks them from logging in via FTP and all other services as well. All I want it to do is prevent a user from logging into the server via anything but FTP. I want them to have FTP access and when they login they land in their home directory with the path showing in the FTP program as "/", but nothing else. How would I best go about this? AKA. When a user does "PWD" all they see is "Current directory is /" instead of the full path and when they do a CD.. they can't go any higher in the directory structure. Basically put I'm wanting to set users so that they can't see anything on the server except their home directory. Thanks again! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message