Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 1999 12:48:50 -0700
From:      Thimble Smith <tim@desert.net>
To:        FreeBSD Support List <freebsd-questions@freebsd.org>
Subject:   ftpd; hiding dot files; FTPD_INTERAL_LS
Message-ID:  <19990225124850.X14762@desert.net>

next in thread | raw e-mail | index | archive | help
Hello.  For the convenience of users (not for any security reasons)
I want to hide dot files from users who FTP in to my machine.  I've
compiled ftpd using FTPD_INTERNAL_LS, and the users are all listed
in /etc/ftpchroot.

Is there a way to have the FTP LIST, NLST commands not show files
whose names start with a dot?  I don't care about CWD, STOR, etc.;
just the listings.  I'm comfortable editing source code; I just
can't find the right place to make the edits (removing the A flag
from the ls command in libexec/ftpd/ftpcmd.c didn't make any
difference).

I'm using FreeBSD 2.2.8.  I will eventually be moving to 3.0-STABLE.

Thanks!

Tim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990225124850.X14762>