Linux系統上ProFTPd安裝與卸載的詳細過程
yum install proftpd
vi /etc/proftpd.conf ← 修改ProFTPD的設定檔
ServerType standalone ← 找到這一行,在行首添加“#”
↓
#ServerType standalone ← 變為此狀態,不使用常駐模式
#ServerType inetd ← 找到這一行,去掉行首的“#”
↓
ServerType inetd ← 變為此狀態,通過超級伺服器來啟動ProFTPD
DefaultRoot ~ !adm ← 找到這一行,將“ !adm”改為“/public_html !wheel”
↓
DefaultRoot ~/public_html !wheel ← 變為此狀態,使除wheel組使用者的根目錄為public_html
找到TLS設定的語句群,如下:
# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
----------------------------------------------------------------
#TLSEngine on
#TLSRequired on
#TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem
#TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem
#TLSCipherSuite ALL:!ADH:!DES
#TLSOptions NoCertRequest
#TLSVerifyClient off
##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
#TLSLog /var/log/proftpd/tls.log
----------------------------------------------------------------
↓將以上水平線間部分的語句,每行行首的“#”都去掉,變為下面水平線間的狀態:
----------------------------------------------------------------
TLSEngine on
TLSRequired on ← 只允許TLS方式的串連(如果將on改為off,普通方式也被允許)
TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem
TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem
TLSCipherSuite ALL:!ADH:!DES
TLSOptions NoCertRequest
TLSVerifyClient off
#TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
TLSLog /var/log/proftpd/tls.log
----------------------------------------------------------------
然後在設定檔的末尾填如下幾行:
ExtendedLog /var/log/proftpd/access.log WRITE,READ default ← 記錄串連日誌到相應記錄檔
ExtendedLog /var/log/proftpd/auth.log AUTH auth ← 記錄認證日誌到相應記錄檔
MasqueradeAddress digeast.no-ip.info ← 定義伺服器網域名稱
PassivePorts 50000 50030 ← 為PASV模式串連時指定連接埠號碼(1024以後存在的任意連接埠號碼)
卸載
yum remove proftpd 即可
感謝閱讀,希望能協助到大家,謝謝大家對本站的支援!