Posts Tagged “pureftp”

By default, pure-ftp server is configured to limit the files display to maximum 2,000 files.  The list will be truncated if your files contain more than the limit.

To change this setting, you can do this:

1) Log into the server via gain the root access

2) Use your favorite text editor to open /etc/pure-ftp.conf

3) Search for the line:
LimitRecursion 2000 8

4) Change the Display limit (Increase/Decrease)

The first number (default = “2000″) after LimitRecursion is the display limit of files pure-ftp will show at anyone time. Just change it to whatever values you think is necessary for your server.

The second number (default = “8″) is the maximum sub directory depth shown in the FTP. You may change this value for recursion limit if necessary as well.

5) Restart the pure-ftpd service
service pure-ftpd restart

Tags: , , , , , ,

Comments No Comments »

The following is the step-by-step to install pure-FTP on Linux CentOS server:

Download pure-ftp installation file:
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ .

Extract the installation file at any directory.
e.g. pure-ftpd-xxx/

Configuring & Installing:
./configure -with-everything -with-paranoidmsg -without-capabilities -with-virtualchroot

#   make
#   make install

After done.

# cd pure-ftpd-xxx/configuration-file/

You need to copy the configuration file to the system:

# cp pure-ftpd.conf /etc/

Then copy the startup script:

# cp pure-config.pl /usr/local/sbin/

To make a group for FTP service:
# groupadd ftpgroup

To check the created groups:
# less /etc/group

To set up the master “FTP User” and assign it into group:
useradd -g ftpgroup -d /home/ftpusers -s /etc ftpuser

To check the added users:
# less /etc/passwd

To create a ftp user and assign it to a directory:

# pure-pw useradd {myftp} -u ftpuser -d /home/{myftp}

* useradd : option for Adding user in pure-pw
* {myftp} : ftp username
* -u : linux username
* ftpuser : the linux user that created
* -d : destination path to the upload directory
* /home/directoryname : path name

Enter ftp user password twice.
e.g.mypass

To display a specify ftp user information:
# pure-pw show {myftp}

Ftp user detail is stored in /etc/pureftpd.passwd

Generate ftp database:
# pure-pw mkdb

It is created at /etc/pureftpd.pdb

Edit the FTP configuration:
vi /etc/pure-ftpd.conf
Uncomment “PureDB” & “AltLog”(clf log).

Finally to start up the ftp service:
# /usr/local/sbin/pure-config.pl /etc/pure-ftpd.conf

If you get the permisssion denied error, do this:
# chmod 755 /usr/local/sbin/pure-config.pl
# yum install perl

Else you should able to see the message below:

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

To test it, you might also need to flush the firewall:
iptables -F

And try connecting to the FTP server:
# ftp {server-ip}

Tags: , , ,

Comments No Comments »