Environment: CENTOS6 Tool PURE-FTPD
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/
Version pure-ftpd-1.0.42
Install FTP
./configure \
--PREFIX=/USR/LOCAL/PUREFTPD \
--WITHOUT-INETD \
--with-altlog \
--with-puredb \
--with-throttling \
--with-peruserlimits \
--with-tls
[[email protected] pure-ftpd-1.0.42]# make
[[email protected] pure-ftpd-1.0.42]# make install
[email protected] configuration-file]# CP pure-ftpd.conf/usr/local/pureftpd/etc/
[email protected] configuration-file]# CP pure-config.pl/usr/local/pureftpd/sbin/
[[email protected] sbin]# chmod 755 pure-config.pl Modify Execute file permissions
[Email protected] etc]# vim pure-ftpd.conf
DG Delete all configuration contents
New configuration
Create a user who is insinuate www
Specify Directory/tmp/tmp
Chown-r www/tmp/tmp/
Create a pureftp insinuate user Ftpuser1
[Email protected] etc]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd ftpuser1-uwww-d/tmp/tmp/
password:111
Enter it again:111
Create a library that holds accounts and passwords
[Email protected] etc]#/USR/LOCAL/PUREFTPD/BIN/PURE-PW MKDB
Generate PUREFTPD.PASSWD and pureftpd.pdb passwords and library files in the/usr/local/pureftpd/etc/directory
Next start the service
[Email protected] etc]#/usr/local/pureftpd/sbin/pure-config.pl/usr/local/pureftpd/etc/pure-ftpd.conf
Connect to FTP
[Email protected] ~]# lftp [email protected]
Password:
lftp [email protected]:~> ls
Drwxr-xr-x 3 501 0 4096 Jan 17 20:30.
Drwxr-xr-x 3 501 0 4096 Jan 17 20:30..
-rw-r--r--1 0 0 9 Jan 17 20:30 123
Drwxr-xr-x 2 0 0 4096 Jan 20:30 AABBC
lftp [Email protected]:/>
Success
Using PURE-FTPD to implement FTP functionality