Skip to content

Instantly share code, notes, and snippets.

@stefanpejcic
Created October 3, 2023 20:25
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 stefanpejcic/460141591861c26201689456df8892e8 to your computer and use it in GitHub Desktop.
Save stefanpejcic/460141591861c26201689456df8892e8 to your computer and use it in GitHub Desktop.
vsftpd.conf
# Enable standalone mode and disable anonymous FTP
listen=YES
anonymous_enable=NO
# Allow local users to login
local_enable=YES
# Enable write access for local users
write_enable=YES
# Set the umask to control permissions of uploaded files
local_umask=022
# Limit the maximum number of concurrent clients
max_clients=200
max_per_ip=10
# Enable ASCII mode for file transfers
ascii_upload_enable=YES
ascii_download_enable=YES
# Set the welcome banner for the FTP server
ftpd_banner=Welcome to My FTP Server
# Specify the chroot directory to restrict users to their home directories
chroot_local_user=YES
allow_writeable_chroot=YES
# Log FTP transactions
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
# Restrict users to their home directories
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
# Allow or deny specific users access
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment