summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1994-10-27 19:14:39 +0000
committerpst <pst@FreeBSD.org>1994-10-27 19:14:39 +0000
commit387cc054fe1f563ffdfc7af173af1ecbdaf9b5f1 (patch)
treef105906eac829a9cbec67892351250b259662ab8 /libexec/ftpd
parent741eddd9e68053998011e44f5fed5f19b43dea64 (diff)
downloadFreeBSD-src-387cc054fe1f563ffdfc7af173af1ecbdaf9b5f1.zip
FreeBSD-src-387cc054fe1f563ffdfc7af173af1ecbdaf9b5f1.tar.gz
Printing out /etc/motd when a ftp login occurs is a security hole
(as is printing out a version number at the telnet login banner). Don't print out /etc/motd when people login, instead if present, print out /etc/ftpmotd. It looks like 4.4lite2 has done something similar (perhaps for different reasons) because /etc/motd no longer shows up on vangogh. Folks who like the old behavior can create a symbolic link to motd.
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/pathnames.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/ftpd/pathnames.h b/libexec/ftpd/pathnames.h
index 2a50063..7d36bcd 100644
--- a/libexec/ftpd/pathnames.h
+++ b/libexec/ftpd/pathnames.h
@@ -35,6 +35,5 @@
#include <paths.h>
-#define _PATH_FTPUSERS "/etc/ftpusers"
#define _PATH_FTPWELCOME "/etc/ftpwelcome"
-#define _PATH_FTPLOGINMESG "/etc/motd"
+#define _PATH_FTPLOGINMESG "/etc/ftpmotd"
OpenPOWER on IntegriCloud