From owner-freebsd-questions Sat Oct 26 9:33:50 2002 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 293EC37B401 for ; Sat, 26 Oct 2002 09:33:49 -0700 (PDT) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BFBA43E6A for ; Sat, 26 Oct 2002 09:33:48 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.5) with ESMTP id g9QGXmqB036851 for ; Sat, 26 Oct 2002 12:33:48 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id g9QGXlLZ036848; Sat, 26 Oct 2002 12:33:47 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: Setting permissions for a user References: From: Lowell Gilbert Date: 26 Oct 2002 12:33:47 -0400 In-Reply-To: Message-ID: <44n0p1f9ck.fsf@be-well.ilk.org> Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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 Adam Bender writes: > On 26 Oct 2002, Lowell Gilbert wrote: > > > Adam Bender writes: > > > > > I would like to create an account to be used for FTP. Since the password > > > will be known by a couple people / could be sniffed since it's not sftp, I > > > would obviously like to limit the powers of this user as much as possible. > > > Specifically, I would like it to be able to create and read files in it's > > > own directory, and that's it. No execution capabilities, unable to read > > > files not in its directory, etc. What's the best way to do this? > > > > Chroot it within ftp (read the ftpd man page, natch) and give the > > account an invalid shell. > > > > Thanks for the help. Does this mean I should add /nonexistent to > /etc/shells, since ftpd will not allow a user to connect who is not using > a shell in that file? Sort of. I'd recommend doing that with a different shell name, not one already used for other accounts. I shouldn't have used the term "invalid" shell, but you seem to have gotten the right idea anyway. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message