Proftp1.2.10 Installation Guide
Proftpd1.2.10 installation and basic configuration |
Proftpd1.2.10 installation and configuration 1. Install Download the 1.2.10 source code package # Tar zxvf proftpd-1.2.10.tar.gz # Cd proftpd-1.2.10 #./Configure -- prefix =/usr/local/ProFTPD # Make # Make install |
2. Configuration
The configuration file is in/use/local/ProFTPD/etc/ProFTPd. conf
My configuration files
------------------------------------------------------
# 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 "ProFTPD default installation"
Servertype Standalone
Defaultserver 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 nobody # This user system should exist
Group nogroup # Some systems do not have a nogroup group, instead of a nobody Group
Maxclientsperhost 2 # maximum thread per IP Address
Maxclients 20 # maximum server thread 20
# To cause every FTP user to be "Jailed" (chrooted) into their home
# Directory, uncomment this line.
Defaultroot ~ # Restrict users to the main directory
# Normally, we want files to be overwriteable.
Allowoverwrite on
Allowretrieverestart on # support for server resume
Allowstorerestart on # support for server resume
Transferrate RETR 500 # maximum download speed of K
# Bar use of site chmod by default
<Limit site_chmod>
Denyall
</Limit>
# A Basic anonymous configuration, no upload directories. If you do not
# Want anonymous users, simply delete this entire <anonymous> section.
<Anonymous/home/ftp>
User FTP
Group FTP
# We want clients to be able to login with "anonymous" as well as "ftp"
Useralias anonymous FTP
# Limit the maximum number of Anonymous logins
Maxclients 10
Requirevalidshell off # shell is not required for FTP, a system user logged on as an anonymous user
# We want 'Welcome. MSG 'displayed at login, and'. message' displayed
# In each newly chdired directory.
Displaylogin welcome. msg
Displayfirstchdir. Message
# Limit write everywhere in the anonymous chroot
<Limit write>
Denyall
</Limit>
</Anonymous>
______________________________________________________________________
ProFTPD users are users that can log on to the Linux system. Anonymous FTP users can leave Shell unspecified (requirevalidshell off)
Use Mount -- bind to mount the directory to be shared to the user's home directory to implement directory ing like Serv-U.
-- Start the service
Service ProFTPD restart