Linux Common Services FTP

Source: Internet
Author: User
Tags bz2 create directory

PURE-FTPD Installation:

wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.42.tar.bz2

Decompression: TAR-JXVF pure-ftpd-1.0.42.tar.bz2

CD pure-ftpd-1.0.42

Installation parameters:./configure--prefix=/usr/local/pureftpd--without-inetd--with-altlog--with-puredb--with-throttling-- With-peruserlimits--with-tls

Compile and install: make, make install

CD configuration-file/

Create directory: Mkdir-p/usr/local/pureftpd/etc/

Copy configuration file: CP pure-ftpd.conf/usr/local/pureftpd/etc/pure-ftpd.conf

Copy execution file: CP pure-config.pl/usr/local/pureftpd/sbin/pure-config.pl

Modify execution permissions: chmod 755/usr/local/pureftpd/sbin/pure-config.pl

Change configuration file: vim/usr/local/pureftpd/etc/pure-ftpd.conf (or download file http://study.lishiming.net/.pf.c)

Chrooteveryone Yes

Brokenclientscompatibility No

Maxclientsnumber 50

Daemonize Yes

Maxclientsperip 8

Verboselog No

Displaydotfiles Yes

AnonymousOnly No

Noanonymous No

Syslogfacility FTP

Dontresolve Yes

MaxIdleTime 15

Puredb/usr/local/pureftpd/etc/pureftpd.pdb

Limitrecursion 3136 8

Anonymouscancreatedirs No

Maxload 4

Antiwarez Yes

Umask 133:022

Minuid 100

ALLOWUSERFXP No

ALLOWANONYMOUSFXP No

Prohibitdotfileswrite No

Prohibitdotfilesread No

Autorename No

Anonymouscantupload No

Pidfile/usr/local/pureftpd/var/run/pure-ftpd.pid

Maxdiskusage 99

Customerproof Yes


Start pure-ftpd:cd/usr/local/pureftpd/

./sbin/pure-config.pl./etc/pure-ftpd.conf

Restarting may be troublesome:

Killall PUREF-FTPD

cd/usr/local/pureftpd/;/sbin/pure-config.pl./etc/pure-ftpd.conf


Create an account: The account used by PURE-FTPD is not a Linux system account, but a virtual account. Because it's safer to do so.

mkdir/data/www/

Useradd FTP01

Chown-r ftp01:ftp01/data/www/

/USR/LOCAL/PUREFTPD/BIN/PURE-PW Useradd ftp_user1-uftp01-d/data/www/

Where-u associates the virtual user Ftp_user1 with the system user www, that is to say, using ftp_user1

Once the account is logged in to FTP, it will read the file or download it as www. -D behind the directory is Ftp_user1 account

Home directory so that Ftp_user1 can only access its home directory/data/www/.

To create a user database file: (very important step)/USR/LOCAL/PUREFTPD/BIN/PURE-PW MKDB

PURE-PW can also list the current FTP account, of course, you can delete an account, we create an account:

/USR/LOCAL/PUREFTPD/BIN/PURE-PW useradd ftp_user2-uwww-d/tmp

/USR/LOCAL/PUREFTPD/BIN/PURE-PW MKDB

List Current account:/USR/LOCAL/PUREFTPD/BIN/PURE-PW list

Delete account:/USR/LOCAL/PUREFTPD/BIN/PURE-PW Userdel ftp_user2




Linux Common Services FTP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.