pro
ftp installation
I created this document
based on redhat 6.x, If you are using redhat 7.x, just substitute "/etc/rc.d/init.d/"
with "/etc/init.d/" as the directory structure is slightly
different in redhat 7.x.
Download Site: http://www.proftpd.net/
Installation Instructions:
Download the RPM’s
both core and standalone
Install rpm's, core
then standalone "# rpm -Uvh name of rpm file"
Edit /etc/inetd.conf
and comment out the line starting ftp
Edit /etc/proftpd.conf
and change the group the server runs as from nogroup to nobody
To restrict ftp
to your local network add the <Limit> info at bottom of proftpd.conf
to look like below sample. To set home directory add DefaultRoot
/namedirectory here like below example.
To start ftp services
type /etc/rc.d/init.d/proftpd start
To get a list of
commands you can issue to proftpd /etc/rc.d/init.d/proftpd –help
Note: below example
has all of the anonamous stuff removed. This example will only
allow users with a valid shell to login.
#
This is a basic ProFTPD configuration file (rename it to
# '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
"Boo"
ServerType standalone
DefaultServer
on
ServerIdent
off
<# 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 should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances
10
# Set the user and group that the server normally runs at.
User
nobody
Group
nobody
# Normally, we want files to be overwriteable.
<Directory /*>
AllowOverwrite
on
</Directory>
<Limit LOGIN>
Order allow, deny
Allow from XXX.XXX.XXX. <put first 2 octets of you subnet
here.
Deny from all
</Limit>
# this defines the ftp directory.
DefaultRoot /wwwroot

|