Installing Pureftpd on Solaris 10

We will use pkgget to install the Pureftpd software.

Install pkg-get.

Skip this if you already have it installed.

Reference: http://www.blastwave.org/howto.html

# pkgadd -d http://www.blastwave.org/pkg_get.pkg

Add the pureftpd package.

# pkg-get –i pureftpd

This downloads and complies the Pureftpd package.
The binary is located here:

# /opt/csw/sbin/pure-ftpd

To run try this:

#/opt/csw/sbin/pure-ftpd -j -lpuredb:/opt/csw/etc/pureftpd.pdb &

Or better yet use the supplied start up script located here:

# /etc/init.d/cswpureftp

Configure Pureftpd

Configuration file the start script looks at:

# /opt/csw/etc/pureftpd.conf.CSW

Rename to pureftpd.conf

# cd /opt/csw/etc/

# cp ./pureftpd.conf.CSW ./pureftpd.conf

Edit config file. We wanted anonymous ftp access turned off and vistual users activated.

So uncomment

PureDB /etc/pureftpd.pdb

And

NoAnonymous yes

Next we’ll complete the steps needed to enable Virtual Users.

We need to create the pureftpd.pdb file from /opt/csw/etc/pureftpd.passwd.

First create a password file

# /opt/csw/etc
# touch pureftpd.passwd

Make the pureftpd.pdb file

# pure-pw mkdb

Or

# /opt/csw/bin/pure-pw mkdb

The start up script expects the files to appear in /etc/
Copy files there:

cp /opt/csw/etc/Pureftpd.passwd  /etc/

and

cp /opt/csw/etc/pureftpd.pdb /etc/

Start Pureftpd

Start the Pureftpd program

# /etc/init.d/cswpureftp

For further documentation on using and configuring, take  a look at www.pureftpd.org

One Response to “Installing Pureftpd on Solaris 10”

  1. February 6th, 2008 at 12:13 pm

    Hi,
    you need also disable the ftp default of solaris:
    svcadm disable ftp
    and create group and user for virtual users:
    groupadd ftpgroup
    useradd -g ftpgroup -d /dev/null -s /bin/false ftpuser

    Sorry for my english

Leave a Reply