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.
This commit is contained in:
Paul Traina 1994-10-27 19:14:39 +00:00
parent 6213f6fc8f
commit 29e92c359a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3936

View File

@ -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"