Setting up Pure FTP server
1. download pureftpd website http://www.pureftpd.org/project/pure-ftpd/doc
http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.21.tar.gz
2. compile i suggest you use "./configure --with-everything" to install all features
3. this ftp server have versatile auth methods (read the documention). but in my case i've use ftp authentiacation based on a independent password file.. below are the
steps.
a. create an "ftpgroup" group and an "ftpuser" user.
groupadd ftpgroup
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
b. execute the following command to add the user
pure-pw useradd testaccount -u ftpuser -d /home/ftpusers/testaccount -N 200
where
user - testaccount
uid - ftpuser
chroot directory - /home/ftpusers/testaccount
disk quota - 200 MB
* this will create "/etc/pureftpd.passwd" by default
c. execute "pure-pw mkdb" to save the changes
* this will create "/etc/pureftpd.pdb"
* remember always execute this after changes made to password file
d. to check account info execute the following
pure-pw show testaccount
OUTPUT:
Login : testaccount
Password : $1$G5jGYrk0$n8vs/BsYv5a2cypCLMStm.
UID : 508 (ftpuser)
GID : 509 (ftpgroup)
Directory : /home/ftpusers/testaccount/./
Full name :
Download bandwidth : 0 Kb (unlimited)
Upload bandwidth : 0 Kb (unlimited)
Max files : 0 (unlimited)
Max size : 200 Mb (enabled)
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)
4. run pureftp server
/usr/local/sbin/pure-ftpd -j -lpuredb:/etc/pureftpd.pdb &
Documentation:
http://www.pureftpd.org/project/pure-ftpd/doc
No comments:
Post a Comment