PROFTPD

xiaoxiao2021-03-06  48

Replace WU-FTPD with Proftpd

One removal of the old version of FTP stops running daemonservice xinetd Stop Remove Anonymous FTPRPM-E Annoft Remove WU-FTPRPM-E WU-FTPD

Second Installation Proftpd1. Program Download URL http://www.proftpd.org latest version is 1.2.8 version of PrOFTPD-1.2.8.tar.gz2. Unzip TAR XzVF Proftpd-1.2.8.tar.gz3. Enter unpack After the directory CD proFTPD-1.2.84. ../Configure5. Make6. Make install7. After installation, configuration file is placed in /usr/local/etc/proftpd.conf Modification Proftpd.conf User Nobody Group NOGROUP Change to User FTP GROUP FTP (Borrowing the original WU-FTPD account and group) 8. Start proFTPD / usr / local / sbin / proFTPD.

Third, change the startup of the ProftPD to open it to the NTSYSV like WU-FTPD. 1. Modify the file /usr/local/etc/proftpd.conf to change the ServerType Standalone to Servertype inetd2. Add the files under /etc/xinetd.d The following service ftp {disable = no flags = reuse socket_type = stream instances = 30 Wait = no user = root server = / usr / local / sbin / proFTPD log_on_success = host pid log_on_failure = host record} 3. Service xinetd Start

Before installing Proftpd, you have to do a few things:

Read the read.pam in the Decutation Directory Description Follow the instructions Add a file ftp in the /etc/pam.d directory, the content is: #% PAM-1.0Auth Required /LIB/security/pam_listfile.so item = user sense = deny file = / etc / ftpusers onerr = succeedauth required /lib/security/pam_pwdb.so shadow nullokaccount required /lib/security/pam_pwdb.sosession required /lib/security/pam_pwdb.so added in the / etc directory (or modified) One file ftpusers, the content of the user who cannot use FTP. Take a look / var / log / messages, before no /etc/pam.d/ftp is: Mar 19 18:40:52 TPO Proftpd [31447]: TPO.CJCHT.com (xxx.xxx.xxx) - FTP session Opened.mar 19 18:40:53 TPO Proftpd [31447]: tpo.cjcht.com (xxx.xxx.xxx- Pam (WWW): Authentication Failure later is: Mar 19 19:06:58 TPO Proftpd [32510] : tpo.cjcht.com (xxx.xxx.xxx- ftp session opend.mar 19 19:06:59 TPO PAM_PWDB [32510]: (ftp) session opened for user www by (uid = 0) is more secure! If Want to change some settings, please modify the proFTPD.conf configuration file in / usr / local / etc directory

TIPS: 1 Set the login can only access your home directory and cannot be browsed up. Modify Proftpd Profile Proftpd.conf will: #default ot ~ change to: Defaultroot ~

转载请注明原文地址:https://www.9cbs.com/read-110162.html

New Post(0)