1, install PROFTPD
Under ftp://ftp.proftpd.org/can find the official release of each PROFTPD version, I use the ftp://ftp.proftpd.org/historic/source/proftpd-1.3.0a.tar.gz
[email protected]:~# wget ftp://ftp.proftpd.org/historic/source/proftpd-1.3.0a.tar.gz
[email protected]:~# tar–xf proftpd-1.3.0a.tar.bz2 (or tar zxvf proftpd-1.3.0a.tar.gz)
[email protected]: ~# CD proftpd-1.3.0a
[Email protected]:~# ./configure--prefix=/var/proftpd--sysconfdir=/etc//Setup directory/var/proftpd, profile directory/etc
Note: If there is an error in this step
configure:error:c++ preprocessor "/lib/cpp" sanity check
Check see ' config.log ' for more details
that is a description of the C + + compiler related Package there is no installation or a missing kernel header file package.
Workaround:
1, perform apt-get install glibc-headers gcc-c++ in terminal
2,apt-get Install Build-essential
Uname-r
Apt-get install linux-headers-' kernel version '
[email protected]:/proftpd-1.3.0a#make//compile
[email protected]:/proftpd-1.3.0a# make install//install
2, Configuration proftpd
[email protected]:/proftpd-1.3.0a# groupadd Kevin//Building Kevin Group
[email protected]:/proftpd-1.3.0a# useradd kevin–g kevin–d/var/ftp–s/sbin/nologin//Add user Kevin
Note: You need to add a line "/sbin/nologin" to the/etc/shells file (otherwise the login failure error will occur when you log on to FTP)
[email protected]:/proftpd-1.3.0a# passwd Kevin //Set Password
[email protected]:/proftpd-1.3.0a# mkdir/var/ftp //Create Directory
[email protected]:/proftpd-1.3.0a# chgrp kevin/var/ftp//Change the group belonging to the FTP directory to Kevin
[email protected]:/proftpd-1.3.0a# chmod–r 755/var/ftp //Change FTP directory permissions are master All rights, same group and others are readable permissions
[email protected]:/proftpd-1.3.0a# vim/etc/proftpd.conf //modify config file
change user Nobody to user Kevin,group Nogroup to Group Kevin.
[email protected]:/proftpd-1.3.0a# /var/proftpd/sbin/proftpd//Start service
Use Ifconfig to view the IP address, for example, 192.168.121.129.
[Email protected]:~# FTP 192.168.121.129
Then enter the new user name and password.
Or, in the browser input ftp://192.168.121.129, pop-up interface, login.