Username: ftpadmin
Password: helloftp
Add a line in the user_list:
ftpadmin
Add a line in chroot_list in:
ftpadmin
Restart command:
Service vsftpd restart
Service vsftpd Start (Start)
Service vsftpd STOP (Stop)
Input:
passvice
Useradd ftpadmin add a user
password: passwd helloftp
Add ftp root directory:
vi /etc/vsftpd.conf
increase: local_root = / home / ftpadmin
To the directory / home / ftpadmin adding permissions
the sudo the chmod O + W / home / ftpadmin
the sudo -R & lt the chmod 777 / home / ftpadmin
配置文件:(vsftpd.conf)
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list (新建的chroot_list文件)
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=NO
tcp_wrappers=YES
allow_writeable_chroot=YES
local_root=/home/ftpadmin (根目录)