Table of contents
About
Installing
BSD
portinstall -PP pure-ftpd-4.0.21_1
add enable to rc.conf
Linux
zypper/aptitude install pure-ftpd
Setup Quotas
ZFS
sudo zfs set quota=5G sdata/ftpBTRFS
EXT
FTP User
Pure-ftpd needs to have an FTP system user and group configuredpw groupadd ftpgroup<br /> pw useradd <em>username</em> -g <em>usergroup</em> -d /dev/null -s /etc
Configuration
Interesting config options in pure-ftpd.conf areChrootEveryone, DisplayDotFiles, AllowDotFiles, NoAnonymous, PureDB (see here), CustomerProof, KeepAllFiles, NoChmod, CreateHomeDir
Create Virtual users
sudo pure-pw useradd <em>someuser</em> -u <em>usergroup</em> -d /data/ftp/someuser
to create the passwd binary, then run
pure-pw mkdb
Show virtual User details
sudo pure-pw show r4ndomuser<br /><br /><em>Login : r4ndomuser<br /> Password : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.<br /> UID : 1007 (username)<br /> GID : 1002 (usergroup)<br /> Directory : /data/ftp/someuser/./<br /> Full name :<br /> Download bandwidth : 0 Kb (unlimited)<br /> Upload bandwidth : 0 Kb (unlimited)<br /> Max files : 0 (unlimited)<br /> Max size : 0 Mb (unlimited)<br /> Ratio : 0:0 (unlimited:unlimited)<br /> Allowed local IPs :<br /> Denied local IPs :<br /> Allowed client IPs :<br /> Denied client IPs :<br /> Time restrictions : 0000-0000 (unlimited)<br /> Max sim sessions : 0 (unlimited)</em>