VSFTPD
Installation on Ubuntu Server
Configuration
Configuration file is in /etc/vsftpd.conf
# Allow local users to log in.
local_enable=YES
#
# Allow Upload
write_enable=YES
# Local user will not be allow to change to a folder different from their home folder
chroot_local_user=YES
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
#This is a security risk because to allow user to logon there's no way to limit that same user from ssh
#If set their shell to /bin/nologin, they will not be able to login FTPEnable virtual users
Verification
Some Errors
Sample Output
PAM adding faulty module: pam_pwdfile.so
Couldn’t open /etc/securetty: No such file or directory
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Some Management Tasks
Generate many accounts with random passwords
Generate folders for many accounts
Reference
Last updated