PROFTPD Service installation management of Linux data collation

Source: Internet
Author: User

Blog:http://lijinhuan.blog.51cto.com/

Weibo:http://weibo.com/lijinhuanexperience

: Xiaoleetongxue



First, installation

(1) Wget-c ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.4b.tar.gz

(2) Tar zxf proftpd-1.3.4b.tar.gz

(3) CD proftpd-1.3.4b

(4)./configure--PREFIX=/USR/LOCAL/PROFTPD

(5) Make && make install



Two, software connection creation

Ln-s/usr/local/proftpd/sbin/proftpd/usr/local/bin/

Ln-s/usr/local/proftpd/bin/ftpasswd/usr/local/bin/



Third, modify the configuration file/usr/local/proftpd/etc/proftpd.conf


ServerName "ProFTPD FTP Server"

ServerType Standalone

Defaultserver on


Port 21


UseIPv6 off


Umask 022


Maxinstances 30


User Nobody

Group Nogroup


Passiveports 20000 30000


Defaultroot ~


AllowOverwrite on


Allowretrieverestart on

Allowstorerestart on

Usereversedns off

Identlookups off


Serverident off

Requirevalidshell off

authuserfile/usr/local/proftpd/etc/ftpd.passwd

Authorder mod_auth_file.c mod_auth_unix.c


AllowOverwrite on


<limit site_chmod>

Denyall

</Limit>

Systemlog/usr/local/proftpd/var/log/proftpd.log

Include/usr/local/proftpd/etc/vhost/*.conf

Iv. Modifying Firewalls

/sbin/iptables-i input-p TCP--dport 21-j ACCEPT

/sbin/iptables-i input-p TCP--dport 20-j ACCEPT

/sbin/iptables-i input-p TCP--dport 20000:30000-j ACCEPT

/sbin/iptables-save

Five. Add FTP user

Mkdir/usr/local/proftpd/etc/vhost

Mkdir/home/lijinhuan

Useradd-s/sbin/nologin-d $userdir-C "PROFTPD user" $username

Cat >/tmp/$user. passwd<<eof

Lijinhuan:lijinhuanpass

Eof

CHPASSWD </TMP/LIJINHUAN.PASSWD

Cat >/usr/local/proftpd/etc/vhost/lijinhuan.conf<<eof

<directory $userdir >

<limit all>

Allowuser Lijinhuan

</Limit>

</Directory>

Eof

/USR/LOCAL/PROFTPD/SBIN/PROFTPD start

Chown-r-V Lijinhuan:lijinhuan/home/lijinhuan

Six, detailed description:

http://linux.vbird.org/linux_server/0410proftpd.php

http://blog.fens.me/linux-ftp-proftpd/


PROFTPD Service installation management of Linux data collation

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.