From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 15:10:19 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D1211065673 for ; Wed, 17 Jun 2009 15:10:19 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by mx1.freebsd.org (Postfix) with ESMTP id B8ADD8FC20 for ; Wed, 17 Jun 2009 15:10:18 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090617151017.JLLT6742.mtaout01-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Wed, 17 Jun 2009 16:10:17 +0100 Received: from catflap.slightlystrange.org ([82.21.101.171]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090617151017.XSHG2093.aamtaout03-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Wed, 17 Jun 2009 16:10:17 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id A079F66EB; Wed, 17 Jun 2009 16:10:14 +0100 (BST) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) by catflap.slightlystrange.org (Postfix) with SMTP id DA46B66E3 for ; Wed, 17 Jun 2009 16:10:13 +0100 (BST) Received: by torus.slightlystrange.org (sSMTP sendmail emulation); Wed, 17 Jun 2009 16:10:13 +0100 From: "Daniel Bye" Date: Wed, 17 Jun 2009 16:10:13 +0100 To: FreeBSD Questions Message-ID: <20090617151012.GF93430@torus.slightlystrange.org> Mail-Followup-To: FreeBSD Questions References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8TaQrIeukR7mmbKf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 7.1-STABLE i386 X-Cloudmark-Analysis: v=1.0 c=1 a=NVliporH3LYA:10 a=ehNlctqhnw0A:10 a=p4f0Z-4_ulNVMLoDu5oA:9 a=bP3CTvKuXheXvBUey4AA:7 a=IbF5opJTKBglKaaVWHt3xlv-JeQA:4 a=cKfpXejYf7zMyQ0m_m4A:9 a=AUgVTCZoyCU8m8PB-9o_6z5u77YA:4 Subject: Re: Files in /var/ftp/etc directory. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 15:10:19 -0000 --8TaQrIeukR7mmbKf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 17, 2009 at 10:22:14AM -0400, Carmel NY wrote: > This is probably a dumb question; however, since I don't know the > answer I figured I might as well ask. >=20 > On a new installation of FreeBSD-7.2, I opted to set up an anonymous > FTP server. I just noticed that there are three files in the '/etc' > directory. >=20 > 1) ftpmold > 2) group > 3) pwd.db They are to enable group and uid lookups when a logged in client issues, for example, an ls command. Without them, clients will only see the=20 numeric user and group ids. And is it really pwd.db? I would expect passwd,= =20 but I haven't run an anonymous ftp server for about a decade now... In=20 either case, both files must be readable by everyone, or lookups would=20 fail. Compare the files of the same name in your system's /etc - both=20 have rw-r--r-- permissions, for the same reason - to commands invoked by ordinary users to perform user name and group name lookups. >=20 > I know what the first one is, but what are the other two for? They are > visible and down loadable to any visitor who accesses the site. Is this > normal or is this something I should be concerned about? Can I just > delete the two files I am unsure of? --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --8TaQrIeukR7mmbKf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAko5B1QACgkQixf5fBYiFmqlOACggMjNG+fGSXhdG1FVrEE3M4hv b1gAn2w7pWNlIb73B3u6fKozgBMb2Xf3 =jzWS -----END PGP SIGNATURE----- --8TaQrIeukR7mmbKf--