Installing and configuring ProFTPD on CentOS

Proftpd is not in the official repositories of CentOS, install it on this in two ways:

1) Manually.

First we will install the necessary packages to build and install ProFTPD:
# yum-y install ncurses-devel gcc gcc-c ++ make rpm-build redhat-rpm-m4 config

To view the latest version of proftpd, you need to go to the official site of the developer:

http://proftpd.org/

After download and compile the package:
# cd/tmp/
# wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.4a.tar.gz
# tar xzf proftpd-1.3.4a.tar.gz
# cd proftpd-1.3.4 a
#./configure-sysconfdir =/etc
# make
# make install
# cd. ..
# rm-fr * proftpd

2 Install RPMForge repository)
#cd/root/
Find out your architecture #uname-i.
Download one of the files (wget):
i386 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
x86_64 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Import key:
#rpm-import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Check the package:
#rpm-K rpmforge-release-0.5.3-1.el6.rf.*.rpm
Set the repository:
#rpm-i rpmforge-release-0.5.3-1.el6.rf.*.rpm

Install ProFTPD:
#yum install-y proftpd

Adding to the startup:
proftpd #chkconfig on

Next, edit the config (/etc/proftpd.conf):
# mcedit/etc/proftpd.conf

change the Group nobody
So:
[…] Group nobody […]

[…]
Group nobody
[…]

For security reasons, you can also add (or uncomment) the following line in the/etc/proftpd.conf:
[…] DefaultRoot ~ IdentLookups off ServerIdent on “FTP Server ready.” […]

[…]
DefaultRoot ~
IdentLookups off
ServerIdent on “FTP Server ready.”
[…]

To FTP users can use the command write shmod string section:
[…] # # DenyAll […]

[…]
#
# DenyAll
[…]

You can also do this to display all the files from and to, as the files begin at the point of the show is:
Listoptions-a

Run:
# proftpd

Add user:
# useradd-d/home//site.ru-M-s/bin/bash user
Where:
/home//site.ru-user FTP root directory
user is the user name

Editing a user’s password:
# passwd user

To delete a user:
# userdel user