How to setup Virtual FTP server using pure-ftpd in CentOS

To setup Virtual FTP server using pure-ftpd in CentOS is as below :

1. Download the packages.
Assuming you already had rpmforge repo enable in your yum.conf.d

yum install pure-ftpd pure-ftpd-selinux -y

2. Add the a valid user to behave / mapped as the virtual user.
need only one.

#useradd ftpuser -d /opt/ftp_users

2. then edit the config file /etc/pure-ftpd/pure-ftpd.conf

to reflect the differences as below :

[[email protected] pure-ftpd]# diff pure-ftpd.conf.original /home/namran/ftp/pure-ftpd.conf 
34c34
< BrokenClientsCompatibility  no
---
> BrokenClientsCompatibility  yes
40c40
< MaxClientsNumber            50
---
> MaxClientsNumber            200
52c52
< MaxClientsPerIP             8
---
> MaxClientsPerIP             24
77c77
< NoAnonymous                 no
---
> NoAnonymous                 yes
126c126
< # PureDB                        /etc/pure-ftpd/pureftpd.pdb
---
> PureDB                        /etc/pure-ftpd/pureftpd.pdb
137c137
< PAMAuthentication             yes
---
> # PAMAuthentication             yes
436c436
< # IPV4Only                 yes
---
> IPV4Only                 yes

3. then make sure to add user with something as following sequence :

mkdir /opt/ftp_users/usernamehere
chown ftpuser:ftpuser /opt/ftp_users/usernamehere
pure-pw useradd usernamehere -u ftpuser -g ftpuser -d /opt/ftp_users/usernamehere/
pure-pw mkdb
pure-pw list

4. Test by trying to login as newly added user.
then try to put / make directory to make sure everything is fine.

That’s all.

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

2 Responses

  1. desa ku pilar says:

    Hello there, I believe your web site may be having browser compatibility issues.
    When I take a look at your blog in Safari, it looks
    fine but when opening in Internet Explorer, it has some overlapping issues.
    I merely wanted to provide you with a quick heads up! Aside from that,
    great blog!

    Reply
  2. pub quiz austin texas says:

    DJ spins out on Saturday nights. At the end of each round
    read out the cumulative scores. Theme Format: It is almost like standard format of the pub quiz.

    Reply

Anything to add?

X