Coremanaged Pure-ftp

From Cheatsheet
Revision as of 22:10, 30 May 2010 by Admin (talk | contribs) (Created page with '<center><h1>Coremanaged Pure-ftp</h1></center> This is how to install Pure-FTP on a coremanaged box. Fist download the source and install it. <pre>cd /usr/local/src/ wget http…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Coremanaged Pure-ftp

This is how to install Pure-FTP on a coremanaged box. Fist download the source and install it.

cd /usr/local/src/
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.29.tar.gz 
tar -zxvf pure-ftpd-1.0.29.tar.gz
cd pure-ftpd-1.0.29
./configure
make
make install

Now you will need to copy over the configuration files.

cp configuration-file/pure-ftpd.conf /etc
cp configuration-file/pure-config.pl /bin
chmod 755 /bin/pure-config.pl

Now edit the pure-ftpd.conf to the settings that you require.

vim /etc/pure-ftpd.conf

After you have made the necessary edits and saved them you will have toy start pure-ftp with the following line to use your configuration file.

pure-config.pl /etc/pure-ftpd.conf

Now make sire that it is running.

ps aux | grep pure-ftpd

Should return results like this one:

[root@Shooltz.net [/myscripts/cpmage]$ ps aux | grep pure-ftpd
root     17549  0.0  0.2  6152 1292 ?        Ss   May16   0:02 pure-ftpd (SERVER)                                                                                                     
root      5769  0.0  0.0  1600  480 ttyp1    S+   18:01   0:00 grep pure-ftpd

if so you have successfully installed Pure-ftp.

Adding ftp users

useradd (username)
passwd (username) 

After doing that you will have to edit the following file for the user you just created, to set the correct docroot.

vim /etc/passwd

Should see a bunch of entries like this one:

shooltz:x:511:511::/home/shooltz:/bin/bash

Now just change "/home/shooltz" to their path to their docroot.
Now you should be all set, Also please dont forget to make sure port 21 is configured on the server for access.