|
From: Marc E. P. <mph...@ma...> - 2003-12-22 23:44:15
|
Hello all,
I need your help, 'cause I want it to appear on user's FTP login
message. That does not work... I am stumped. The file is still there
in /etc/welcome.msg
ls -la /etc/welcome.msg -rw-r--r-- 1 root root 160
Dec 19 18:16 /etc/welcome.msg
Can you help, thanks!
[root@ftp etc]# vi /etc/proftpd.conf
ServerName "Test Anonymous FTP Server"
ServerType standalone
ServerAdmin "us...@se..."
ServerIdent on "FTP Server ready."
Port 21
DefaultServer on
MaxInstances 50
TimeoutStalled 300
SystemLog /var/log/ftpdlog
UseReverseDNS off
IdentLookups off
UseFtpUsers off
AllowOverwrite on
ShowSymlinks on
WtmpLog on
MaxInstances 200
MultilineRFC2228 on
<Global>
DisplayConnect /etc/welcome.msg
Umask 002
User ftp
Group ftp
# Stops DoS attacks
DenyFilter \*.*/
</Global>
<Directory /*>
AllowOverwrite on
DenyAll
</Directory>
<Directory /home/ftp>
AllowOverwrite on
</Directory>
#
# This block defines the environment for Anonymous
# FTP Users. The Anonymous directive will chroot the
# ftp session inside of /home/ftp
<Anonymous /home/ftp>
#DisplayLogin /etc/welcome.msg
UserAlias anonymous ftp
# Do not require a password from anonymous users
AnonRequirePassword off
# To the anonymous user, all files belong to the
# user and group 'ftp'
DirFakeUser on ftp
DirFakeGroup on ftp
MaxClients 255 "Try back later: The maximum number of anonymous
users has been met. (%m)"
MaxClientsPerHost 2 "Sorry: No more then two simultaneous
connections per host are allowed."
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
#DisplayFirstChdir /etc/.message
<Directory *>
<Limit SITE_CHMOD>
DenyAll
</Limit>
<Limit WRITE>
DenyAll
#Deny from all
#Allow from ruby.erdc.hpc.mil, bqueen.best.vwh.net
UseFtpUsers off
AllowOverwrite on
ShowSymlinks on
WtmpLog on
MaxInstances 200
MultilineRFC2228 on
<Global>
DisplayConnect /etc/welcome.msg
Umask 002
User ftp
Group ftp
# Stops DoS attacks
DenyFilter \*.*/
</Global>
<Directory /*>
AllowOverwrite on
DenyAll
</Directory>
<Directory /home/ftp>
AllowOverwrite on
</Directory>
#
# This block defines the environment for Anonymous
# FTP Users. The Anonymous directive will chroot the
# ftp session inside of /home/ftp
<Anonymous /home/ftp>
#DisplayLogin /etc/welcome.msg
UserAlias anonymous ftp
# Do not require a password from anonymous users
AnonRequirePassword off
# To the anonymous user, all files belong to the
# user and group 'ftp'
DirFakeUser on ftp
DirFakeGroup on ftp
MaxClients 255 "Try back later: The maximum number of anonymous
users has been met. (%m)"
MaxClientsPerHost 2 "Sorry: No more then two simultaneous
connections per host are allowed."
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
#DisplayFirstChdir /etc/.message
<Directory *>
<Limit SITE_CHMOD>
DenyAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
<Limit LOGIN>
Deny from stink.net
</Limit>
</Directory>
<Directory mirrors/ftp.openssl.org>
<Limit SITE_CHMOD>
DenyAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
<Limit READ>
Deny from all
Allow from nasa.gov
</Limit>
</Directory>
<Directory mirrors/ftp.modssl.org>
<Limit SITE_CHMOD>
DenyAll
</Limit>
<Limit WRITE>
DenyAll
</Limit>
<Limit READ>
Deny from all
Allow from nasa.gov
</Limit>
</Directory>
</Anonymous>
--
Marc Phillips
*************************************
* Web Server Admin
* NASA Ames Research Center
*************************************
|