Install and build a ProFTPd server in Ubuntu

Source: Internet
Author: User
Introduction front-end engineers are required to test the environment, but most front-end engineers do not need Linux. After debugging, I am a part-time O & M engineer, therefore, setting up an FTP server in Ubuntu allows front-end engineers to deploy and debug their own code. Set up the ProFTPd server and install ProFTPdsudoapt-getinstallproftpd to configure ProFTPdvim/etc/proftpd. conf # Thi

Introduction

Work requires front-end engineers to test in the test environment, but most front-end engineers do not need Linux. After debugging, I am a part-time O & M engineer, therefore, setting up an FTP server in Ubuntu allows front-end engineers to deploy and debug their own code.

Build a ProFTPd Server

Install ProFTPd

Sudo apt-get install proftpd

Configure ProFTPd

Vim/etc/proftpd. conf

# This is a basic ProFTPD configuration file (rename it
# 'Proftpd. conf' for actual use. It establishes a single server
# And a single anonymous login. It assumes that you have a user/group
# "Nobody" and "ftp" for normal operation and anon.

ServerName "hao geek team"
ServerIdent on "Welcome To Hao Geek! "
ServerType standalone
DefaultAddress 192.168.1 .***
SocketBindTight on

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# From being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# To 30. If you need to allow more than 30 concurrent connections
# At once, simply increase this value. Note that this ONLY works
# In standalone mode, in inetd mode you shoshould use an inetd server
# That allows you to limit maximum number of processes per service
# (Such as xinetd ).
MaxInstances 30

# Set the user and group under which the server will run.
User www-data
Group www-data

# To cause every FTP user to be "jailed" (chrooted) into their home
# Directory, uncomment this line.
DefaultRoot/srv/www/test/
AllowOverwrite yes

# Normally, we want files to be overwriteable.


AllowUser wangzhengyi
DenyAll

# Set the client authentication method, through the file authentication http://www.linuxidc.com
AuthOrder mod_auth_file.c mod_auth_unix.c
# Specify the passwd file for file Authentication
AuthUserFile/etc/proftpd/ftp. passwd
# Specify the group file for file Authentication
AuthGroupFile/etc/proftpd/ftp. group
# A valid shell is not required for the authenticated account
RequireValidShell off
# Set the number of connection requests per second to prevent DoS Attacks
MaxConnectionRate 5
# Maximum number of clients connected
MaxClients 20 "Sorry, the maximum number of allowed users (% m) are already connected ."
# Enable resumable upload
AllowStoreRestart on
# Disable reverse dns resolution
UseReverseDNS off
IdentLookups off

Ftpasswd creates an access user

Sudo ftpasswd -- passwd -- file =/etc/proftpd/ftp. passwd -- name = wangzhengyi -- uid = 33 -- shell =/bin/false -- home =/home/nohome

The definition of each parameter can be man. It is necessary to think about your own needs!

Restart the proftpd Server

Sudo/etc/init. d/proftpd restart

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.