Set Up

pureftp

http://wiki.ggis.biz/index.php/Pure-FTPd_on_Ubuntu
http://www.hammondslegacy.com/forum/viewtopic.php?f=40&t=197

sudo bash
apt-get install pure-ftpd
cd /etc/pure-ftpd/conf

echo 'no' > PAMAuthentication
echo 'no' > UnixAuthentication
echo '/etc/pure-ftpd/pureftpd.pdb' > PureDB
ln -s ../conf/PureDB /etc/pure-ftpd/auth/50pure

groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "FTP user" -g ftpgroup ftpuser
mkdir -p /home/ftpusers/mytest
chown -R ftpuser:ftpgroup /home/ftpusers
pure-pw useradd mytest -u ftpuser -d /home/ftpusers/mytest
pure-pw mkdb
/etc/init.d/pure-ftpd restart

 1267  echo 'yes' > ChrootEveryone
 1268  echo 'yes' > BrokenClientsCompatibility
 1269  echo '50' > MaxClientsNumber
 1270  echo '5' > MaxClientsPerIP
 1271  echo 'yes' > Daemonize
 1272  echo 'no' > VerboseLog
 1273  echo 'yes' > DisplayDotFiles
echo 'yes' > ProhibitDotFilesWrite
echo 'yes' > NoChmod
echo 'no' > AnonymousOnly
echo 'yes' > NoAnonymous
echo 'no' > PAMAuthentication
echo 'no' > UnixAuthentication
echo '/etc/pure-ftpd/pureftpd.pdb' > PureDB
echo 'yes' > DontResolve
echo '15' > MaxIdleTime
echo '2000 8' > LimitRecursion
echo 'yes' > AntiWarez
echo 'no' > AnonymousCanCreateDirs
echo '4' > MaxLoad
echo 'no' > AllowUserFXP
echo 'no' > AllowAnonymousFXP
echo 'no' > AutoRename
echo 'yes' > AnonymousCantUpload
echo 'yes' > NoChmod
echo '80' > MaxDiskUsage
echo 'yes' > CustomerProof
echo '0' > TLS

echo '1' > TLS

openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
chmod 400 /etc/ssl/private/pure-ftpd.pem

chmod 555 /home/ftpusers/mytest/

mkdir -p /home/ftpusers/mytest/public
chmod -R 755 /home/ftpusers/mytest/public

mkdir -p /home/ftpusers/mytest/private
chmod -R 700 /home/ftpusers/mytest/private

chown -R ftpuser:ftpgroup /home/ftpusers/mytest/
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License