Skip to content

Instantly share code, notes, and snippets.

@linuxfemale
Last active December 2, 2019 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxfemale/46ce67f15ee348014b055a7deee298e9 to your computer and use it in GitHub Desktop.
Save linuxfemale/46ce67f15ee348014b055a7deee298e9 to your computer and use it in GitHub Desktop.
FTP server on Ubuntu 18.04 LTS
sudo apt update
sudo apt install vsftpd
sudo cp -v /etc/vsftpd.conf /etc/vsftpd.conf.bk
sudo nano /etc/vsftpd.conf
Uncomment below lines.
write_enable=YES
local_umask=022
chroot_local_user=YES
Add below lines at the end of the file.
allow_writeable_chroot=YES
pasv_min_port=40000
pasv_max_port=40100
sudo systemctl enable vsftpd
sudo systemctl restart vsftpd
sudo systemctl status vsftpd
sudo useradd -m sas -s /usr/sbin/nologin
sudo passwd sas
echo "/usr/sbin/nologin" | sudo tee -a /etc/shells
sudo apt install filezilla
ftp localhost
#vedio tutorial
https://www.youtube.com/watch?v=FzVj0g-P-CE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment