Manually install pureftp

Posted January 12th, 2009 by marslert

Before install pureftp, I am going to show how to manually create a linux user, linux group and assign the user to grou[.

Add user:

# useradd ftpuser

Check user:

# less /etc/passwd

ftpuser:x:500:500::/home/ftpuser:/bin/bash

Add group:

# groupadd ftpgroup

Check group:

# less /etc/group

ftpgroup:x:500:

Assign user to group:

# vi /etc/group

change ftpgroup:x:500: to ftpgroup:x:500:ftpuser

Install pureftp:

  1. Download pureftp installation file from ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ .
  2. Extract the installation file at any directory.
  3. Run ./configure –with-everything –with-paranoidmsg –without-capabilities -with-virtualchroot
  4. Run make & make install
  5. Done

Copy pureftp configuration to /etc :

# cp pure-ftpd-1.0.21/configuration-file/pure-ftpd.conf /etc

Copy pureftp startup script to /usr/local/sbin/ :

# cp pure-ftpd-1.0.21/configuration-file/pure-config.pl /usr/local/sbin/

Create a ftp user :

# pure-pw useradd test -u ftpuser -d /home/directoryname

  • useradd > option of pure-pw
  • test > the ftp username
  • -u > linux username
  • ftpuser > the linux user that created
  • -d > path to the upload directory
  • /home/directoryname > path name

Show ftp user detail :

# pure-pw show test

Output :

Login              : test
Password           : $1$h8ZLTun0$iYCeCgrYfMz0BrbLC/6Ca1
UID                : 500 (ftpuser)
GID                : 500 (ftpgroup)
Directory          : /home/directory/./
Full name          :
Download bandwidth : 0 Kb (unlimited)
Upload   bandwidth : 0 Kb (unlimited)
Max files          : 0 (unlimited)
Max size           : 0 Mb (unlimited)
Ratio              : 0:0 (unlimited:unlimited)
Allowed local  IPs :
Denied  local  IPs :
Allowed client IPs :
Denied  client IPs :
Time restrictions  : 0000-0000 (unlimited)
Max sim sessions   : 0 (unlimited)

Check ftp user option :

# pure-pw usermod test -h

Ftp user option normally stored in /etc/pureftpd.passwd . You will something like below when open this file.

test:$1$vrb6.MK0$/shIogHo4RVvQXr8bJSBe/:500:500::/home/directory/::::::::::::

Generate ftp database :

# pure-pw mkdb

The ftp database file will be created at /etc and named pureftpd.pdb .

Un-comment PureDB & AltLog varialble that store in /etc/pure-ftpd.conf .

Now, we can start the ftp service

# /usr/local/sbin/pure-config.pl /etc/pure-ftpd.conf

Done !!! Pureftp is installed. May try to connect to the ftp service via ftp client or ftp command.

2 Responses to “Manually install pureftp”

  1. Loh

    The show ftp user detail command should be:
    pure-pw show ftpusername
    !

  2. Marslert

    I have corrected it. Thanks Loh.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>