Created
March 9, 2020 10:53
-
-
Save LinuxDevOpsGirl/c41414872e8ce4059a981e8d7e7cafab 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment