Skip to content

Instantly share code, notes, and snippets.

@vutranvn
Last active October 8, 2017 11:35
Show Gist options
  • Save vutranvn/2247610f7d09fe2f36cc92c4a15d7f83 to your computer and use it in GitHub Desktop.
Save vutranvn/2247610f7d09fe2f36cc92c4a15d7f83 to your computer and use it in GitHub Desktop.
- Install VSFTPD
> apt-get -y install vsftpd
- Open > nano /etc/vsftpd.conf and find edit:
# Controls whether anonymous logins are permitted or not.
anonymous_enable=NO
# Allow local users to login
local_enable=YES
# Set 'write_enable' to YES in order to allow changes to the filesystem
write_enable=YES
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
ascii_upload_enable=YES
ascii_download_enable=YES
# You can set the root directory of the FTP users. if not specified, users' home directory equals FTP home directory
local_root=public_html
- Restart service
> systemctl restart vsftpd
- Enable service auto start on system boot
> systemctl enable vsftpd
- Add new user FTP
> adduser FTPUSER
NOTE: Reference at http://vsftpd.beasts.org/vsftpd_conf.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment