From owner-freebsd-questions Wed Oct 16 15:32:18 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 D90CC37B404 for ; Wed, 16 Oct 2002 15:32:16 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E6F243E42 for ; Wed, 16 Oct 2002 15:32:15 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9GMWDKg085243; Wed, 16 Oct 2002 23:32:13 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9GMW8mM085242; Wed, 16 Oct 2002 23:32:08 +0100 (BST) Date: Wed, 16 Oct 2002 23:32:08 +0100 From: Matthew Seaman To: Ms Carlsson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /usr/libexec/ftpd Message-ID: <20021016223208.GB84463@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Ms Carlsson , freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-10.6 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT, USER_AGENT_MUTT version=2.41 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 Wed, Oct 16, 2002 at 11:56:10PM +0200, Ms Carlsson wrote: > How do i set the anonymous homedir? You have to create a 'ftp' user if you're going to support anonymous ftp. Do that using the usual system tools, eg: pw groupadd -n ftp -g 21 pw useradd -n ftp -u 21 -c "Anonymous FTP" -d /home/ftp which sets the anonymouse ftp area to /home/ftp. Read and follow carefully the instructions in the ftpd(8) man page about how to set up that area --- if you don't do it right you can open up a security hole a mile wide. > How do i set maximum of connections. See ftpd.conf(5), ftpchroot(5) and ftpusers(5) man pages, but essentially you need to add: anonymous allow ftp allow to /etc/ftpusers, and add: limit guest 100 to /etc/ftpd.conf, which will limit you to 100 concurrent anonymous ftp users (Create the file if it doesn't exist already). Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message