vsftpd
Edit /etc/vsftpd.conf and check the following settings:
-
# FTP service
listen_port=21
ftp_data_port=20
max_login_fails=3
-
# FTP banner
ftpd_banner=[message here]
banner_file=[path to file]
-
# Disable anonymous users and related permissions
anonymous_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
anon_upload_enable=NO
no_anon_password=NO
anon_root=
-
# Login with local users
local_enable=YES
-
# Users only need to download files? Disable write permissions.
write_enable=NO
-
# Need to isolate users? Use chroot.
chroot_local_user=YES
Then restart vsftpd service for these settings to take in effect.
References:
- https://help.ubuntu.com/community/vsftpd
- https://manpages.ubuntu.com/manpages/bionic/en/man5/vsftpd.conf.5.html