Last active
December 2, 2019 14:56
-
-
Save linuxfemale/46ce67f15ee348014b055a7deee298e9 to your computer and use it in GitHub Desktop.
FTP server on Ubuntu 18.04 LTS
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
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