System environment
ubuntu 14.04 LTS
vsftpd installation
apt-get install vsftpd
Configuration file
The location of the default configuration file is /etc/vsftpd.conf
local_enable=YES //Open local system account login
write_enable=YES //When the file cannot be created, open this
local_umask=022//When the uploaded file does not have read permission, open this
chroot_list_enable=YES //Open the restriction list, this is the switch
chroot_list_file=/etc/vsftpd.chroot_list //Restricted list list, users to be restricted
local_root=/usr/local/htdocs //Specify a locked directory
common problem
500 OOPS: vsftpd: refusing to run with writable root inside chroot
Solution: The set directory cannot have write permission, set the permission to 755
Recommended Posts