# tar –zxvf proftpd-1.3.0rc3.tar.gz # cd proftpd-1.3.0rc3 # ./configure --prefix=/usr/local/proftpd --sysconfdir=/etc --enable-autoshadow --localstatedir=/var/run --enable-ctrls --with-modules=mod_tls
# make # make install
配置PROFTPD服务器:
# vi /etc/proftpd.conf ================+================+================= # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "llzqq" ServerType standalone DefaultServer on AllowRetrieveRestart on AllowStoreRestart on ServerType standalone ServerIdent on SystemLog /var/log/proftpd.log UseReverseDNS off IdentLookups off RequireValidShell off # Port 21 is the standard FTP port. Port 21 # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 MaxInstances 100 # Set the user and group under which the server will run. User nobody Group nogroup # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ # Normally, we want files to be overwriteable. AllowOverwrite on
# We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin .welcome DisplayFirstChdir .message # Limit User of being enbled login ftp server AllowGroup ftp DenyAll
#########################ssl/tls############################ # MOD_TLS SETTING TLSEngine on TLSLog /var/log/proftpd-tls.log TLSProtocol SSLv23 # Are clients required to use FTP over TLS when talking to this server? TLSRequired ctrl # Server's certificate TLSRSACertificateFile /etc/proftpd.crt TLSRSACertificateKeyFile /etc/proftpd.key # Authenticate clients that want to use FTP over TLS TLSVerifyClient off #########################ssl/tls############################ DenyGroup ftp