Skip to content

Instantly share code, notes, and snippets.

@anhphamt
Last active April 6, 2018 03:45
Show Gist options
  • Save anhphamt/a4699be003710a4ab6e2df09a88e4eca to your computer and use it in GitHub Desktop.
Save anhphamt/a4699be003710a4ab6e2df09a88e4eca to your computer and use it in GitHub Desktop.
Install FTP on Ubuntu

#install config pure-db sudo apt-get install pure-ftpd

sudo groupadd ftpgroup

sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser -d /home/ftpuser

sudo chown -R ftpuser:ftpgroup /home/ftpuser

sudo pure-pw useradd $USERNAME -u ftpuser -d /home/ftpuser

sudo pure-pw mkdb

cd /etc/pure-ftpd/conf

sudo echo 'no' > PAMAuthentication

sudo echo 'no' > UnixAuthentication

sudo echo '/etc/pure-ftpd/pureftpd.pdb' > PureDB

sudo ln -s ../conf/PureDB /etc/pure-ftpd/auth/50pure

Restart the apache

sudo service apache2 restart

service pure-ftpd restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment