Monday, October 13, 2008

HOWTO install and configure proftpd on Centos 5 with file authentification

1. Download proftpd rpm package. I download it from http://rpm.pbone.net
# wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/x86_64/RPMS/proftpd-1.3.1-3.el5.kb.x86_64.rpm
2. Install rpm package
# rpm -i proftpd-1.3.1-3.el5.kb.x86_64.rpm
3. Use ftpasswd to create user and group for ftp login. Complete manual click here.
- add user
# mkdir /etc/proftpd
# ftpasswd --passwd --file=/etc/proftpd/passwd --name=bob --uid=1001 --home=/home/bob --shell=/bin/false
- add group
# ftpasswd --group --file=/etc/proftpd/group --name=group-name --gid=group-id --member=user-member1 --member=user-member2 ... --member=user-memberN
4. Edit /etc/proftpd.conf file
AuthUserFile /etc/proftpd/passwd
AuthGroupFile /etc/proftpd/group
#Disable PAM authentification
#AuthPAMConfig proftpd
#AuthOrder mod_auth_pam.c* mod_auth_unix.c

AuthPAM off
5. Restart proftpd service and put proftpd service in startup list.
# /etc/init.d/proftpd start
# chkconfig proftpd on

0 comments: