Created
March 28, 2014 12:08
-
-
Save vnykmshr/9831225 to your computer and use it in GitHub Desktop.
Pure-ftpd server on EC2 Ubuntu Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install pure-ftpd | |
# Ensure | |
# File /etc/inetd.conf has `ftp` commented out | |
# File /etc/default/pure-ftpd-common STANDALONE_OR_INETD=standalone | |
# Add ftp users group | |
groupadd ftpusers | |
# Add ftp user - ftpuser or any other id as preferred | |
useradd -g ftpusers -d /dev/null -s /bin/false ftpuser | |
# home dir for all ftp users | |
mkdir /home/ftpusers | |
#create directory for each ftp user | |
mkdir /home/ftpusers/alice | |
pure-pw useradd alice -u ftpuser -d /home/ftpusers/alice | |
pure-pw mkdb | |
ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd | |
ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb | |
ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB | |
# Edit /etc/pure-ftpd/conf/UnixAuthentication, entry "no" without quotes | |
chown ftpuser:ftpusers /home/ftpusers | |
chown -R ftpuser:ftpusers /home/ftpusers/* | |
# Edit /etc/pure-ftpd/conf/PassivePortRange, add entry 1024 1048 | |
# Edit /etc/pure-ftpd/conf/ForcePassiveIP, add entry <EC2 public IP> | |
# Ensure inbound is allowed on ports 20-21, 1024-1048 | |
servic pure-ftpd restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a little fix at line 37 servic pure-ftpd restart => service pure-ftpd restart