Date: Wed, 17 Jun 2009 16:10:13 +0100 From: "Daniel Bye" <danielby@slightlystrange.org> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Files in /var/ftp/etc directory. Message-ID: <20090617151012.GF93430@torus.slightlystrange.org> In-Reply-To: <BLU0-SMTP9667D7D692E65533A342E933C0@phx.gbl> References: <BLU0-SMTP9667D7D692E65533A342E933C0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
>
> 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.
>
> 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
numeric user and group ids. And is it really pwd.db? I would expect passwd,
but I haven't run an anonymous ftp server for about a decade now... In
either case, both files must be readable by everyone, or lookups would
fail. Compare the files of the same name in your system's /etc - both
have rw-r--r-- permissions, for the same reason - to commands invoked
by ordinary users to perform user name and group name lookups.
>
> 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?
--
Daniel Bye
_
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
iEYEARECAAYFAko5B1QACgkQixf5fBYiFmqlOACggMjNG+fGSXhdG1FVrEE3M4hv
b1gAn2w7pWNlIb73B3u6fKozgBMb2Xf3
=jzWS
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090617151012.GF93430>
