Pureftpd Installation and Setup: From Debian Wiki
Pureftpd Installation and Setup: From Debian Wiki
http://linux.justinhartman.com/PureFTPd_Installation_a...
Contents
1 2 3 4 Introduction Requirements Pre-Installation Install Pure-FTPd 4.1 Create a new user 4.2 User Information 4.3 Resetting a password 5 Starting the FTP Server 6 Conguring Pure-FTPd 7 References
Introduction
The following HOWTO is aimed at installing and setting up a FTP server, based on Pure-FTPd, which supports multiple Virtual Hosts.
Requirements
A Debian Etch base installation - Installation HOWTO here. Root access to your server.
Pre-Installation
Before proceeding to install, update the necessary packages in Debian with these commands.
apt-get update apt-get upgrade
Install Pure-FTPd
In a Linux shell run the following:
1 of 4
01/11/2012 02:38 AM
http://linux.justinhartman.com/PureFTPd_Installation_a...
Now we add a user for the group and give that user no permission to a home directory or a shell:
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
In the above command we gave him a limit of 10 MB disk space with the option "-N 10". Now you have to enter justin's new password twice. By default your users will be saved in /etc/pure-ftpd/pureftpd.passwd, but rst we have to update the pureftpd Database:
pure-pw mkdb
The "Database" here is simply a binary le but it is ordered and has an index for quick access.
User Information
To get some user details enter the following to get a complete list of all pureftpd users:
pure-pw list
This will show you detailed information about the user "justin". You will notice that the line "Directory: /home/pubftp/justin/./" has a trailing ./ but you shouldn't worry as this is simply the chroot for the user, which means he can't go "above" his directory.
Resetting a password
2 of 4
01/11/2012 02:38 AM
http://linux.justinhartman.com/PureFTPd_Installation_a...
If you forget the password for a user, you can reset it as follows:
pure-pw passwd justin
The shell will open up a new pure-ftpd session and you should be able to connect to your FTP server. Use an FTP client to test whether or not you are able to login with your user details you created. Once you are happy close the session o:
ctrl z
Conguring Pure-FTPd
Right so by now you have created a user and been able to connect to your FTP server. We now want to setup a few things so that we can run Pure-FTPd as a daemon. First you need to set Pure-FTPd as a standalone server:
vim /etc/default/pure-ftpd-common
Replace this:
STANDALONE_OR_INETD=inetd
With this:
STANDALONE_OR_INETD=standalone
Now we want to ensure that the standalone server checks our usernames and passwords against the pureftpd database le:
cd /etc/pure-ftpd/conf vim PureDB
3 of 4
01/11/2012 02:38 AM
http://linux.justinhartman.com/PureFTPd_Installation_a...
You should now see a new le "50pure" linking to ../conf/PureDB. Restart Pure-FTPd:
/etc/init.d/pure-ftpd restart
Pure-FTPd should now startup in daemon mode and everything should be up and running.
References
Howto install pureftpd on a debian machine (http://www.debian-administration.org /articles/383) - by remofritzsche Pure-FTPd Website (http://www.pureftpd.org) | Retrieved from "http://linux.justinhartman.com/PureFTPd_Installation_and_Setup"
4 of 4
01/11/2012 02:38 AM