From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 785612EFA0 for ; Mon, 18 Dec 2000 10:43:44 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eBIFhio09174 for axp-list@listman.redhat.com; Mon, 18 Dec 2000 10:43:44 -0500 Received: from ellpspace.math.ualberta.ca (IDENT:michal@ellpspace.math.ualberta.ca [129.128.207.67]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eBIFhhD09170 for ; Mon, 18 Dec 2000 10:43:43 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.9.3/8.9.3) id IAA30675 for axp-list@redhat.com; Mon, 18 Dec 2000 08:43:41 -0700 Date: Mon, 18 Dec 2000 08:43:41 -0700 From: Michal Jaegermann To: axp-list@redhat.com Subject: Re: Allowing ftp but not a shell Message-ID: <20001218084341.A30649@ellpspace.math.ualberta.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: ; from Brock Noland on Sun, Dec 17, 2000 at 09:57:38PM -0500 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors On Sun, Dec 17, 2000 at 09:57:38PM -0500, Brock Noland wrote: > > How can I allow someone to use ftp but not give them a shell... You may always give /bin/false as a "shell". The only thing is that in such case /bin/false has to be listed in /etc/shells or things may not work. Do not give a shell script for a "shell" if you are concerned with security like you should be. > An ISP I > uaed to work for had a shell called webftp I haved looked and looked for > this, cannot find my answer.. This depends on a server but with wu-ftpd look at 'man ftpaccess'. You have a control over many described there. In particular you can set "chroot" accounts. Look for the following fragment on a manual page. The second half is the user's home directory relative to the root directory. The two halves are separated by a "/./". For example, in /etc/passwd, the real entry: guest1::100:92:Guest Account:/ftp/./incoming:/etc/ftponly but replace /etc/ftponly with /bin/false. Configurations like that are your ftp server and not a processor specific. Michal