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

7 Responses

  1. blink4blog says:

    hi bro, i am doing the same thing as you but if you just show the Connection Information it does not show the bandwidth and speed.

    another tool that similar with Mobile Connect is Vodafon Mobile Connect.

    btw, does the modem goes into stalled mode of purplish LED and sometimes resume to light blue?

    Reply
    • HawkEYE says:

      .. Vodafon Mobile Connect is the software come with the USB Modem itself right.

      And it only run on windows machine..
      for the bandwidth and speed , you can monitor it by adding some “applet” to the “top panel”
      namely “NetSpeed”

      the modem goest into purplish LED and back to light blue due to coverage .. (i think switching between GPRS and EDGE) mode.. can also dropped by itself whenever idle. the best one is with CYAN color.. indicating of 3G coverage available.

      Reply
  2. krul says:

    hello bro it work nice job.. but when i install wicd , i can not configure the maxis broadband.. can u help

    Reply
  3. namran says:

    krul,

    Sorry,
    I never had experience with wicd..
    (is this the software that you’re referring to ?)

    plus this also my first time heard about wicd..
    hehehe… may be you could have email them.

    Reply
  4. king z says:

    dude i got this on ubuntu… n have to admit it was simple…
    but the problem is… now i switched to kubuntu, n the network manager is different from that of ubuntu…
    i’m not seeing country, isp and even connection choice.. help me pretty pls.. meet me on facebook: Raja Zakwan

    Reply
  5. dudie2pooh says:

    Dude. You’re using a camera for this? Ever heard of screenshots?

    Reply
  6. namran says:

    haha.. for the testing purpose..that ubuntu was running on livecd..
    -with the sluggish internet connection provided by
    these so-called wifi broadband..
    – too lazy to plug in usb and transfer back to other os.

    ended up captured on handphone camera a lot easier.
    afterward can just bluetooth transfer it and upload to blog.

    Reply

Anything to add?

X