From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 00:27:59 2004 Return-Path: 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 CE07E16A4CE for ; Sat, 31 Jan 2004 00:27:59 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB02343D2D for ; Sat, 31 Jan 2004 00:27:56 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i0V8Rpjc092640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 31 Jan 2004 08:27:51 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0V8Rnol092639; Sat, 31 Jan 2004 08:27:49 GMT (envelope-from matthew) Date: Sat, 31 Jan 2004 08:27:49 +0000 From: Matthew Seaman To: Robert Storey Message-ID: <20040131082749.GA90770@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Robert Storey , freebsd-questions@freebsd.org References: <20040131104912.277716dc.y2kbug@ms25.hinet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: <20040131104912.277716dc.y2kbug@ms25.hinet.net> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: anonymous ftp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2004 08:27:59 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 31, 2004 at 10:49:12AM +0800, Robert Storey wrote: > I'm setting up an anonymous ftp server. I understand that a user named > "ftp" can log in without a password, and that "anonymous" is an alias > for user ftp. What I'm wondering is if it is possible to assign other > aliases for ftp, let us say user "aardvark" or "scary.daemon" whatever? > How would I go about doing that? It depends on which FTP server software you're using. For the built-in ftpd, see ftpd.conf(5), ftpusers(5) and ftpchroot(5) --- but basically you need something like this: /etc/ftpusers: root toor daemon operator bin tty kmem games news man sshd bind uucp xten pop www nobody mailnull smmsp # UIDs for anonymous FTP aardvark allow guest scary.daemon allow guest That's all you need, but if you want to make the FTP session chroot to some other directory, or make the FTP daemon display various messages when the user logs in, use /etc/ftpd.conf and /etc/ftpchroot as well.=20 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAG2cFdtESqEQa7a0RAllgAJ94r/oOQpZsIB6DA/P3OLtlTGp/kQCfc0PO EB6gsPlvE2fxX3nlrhvkLOI= =OIbA -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--