mkdir /opt/ftpinfo
useradd -b /opt/ftpinfo -s /sbin/nologin ftpinfo #指定目录-程序用户
chown ftpinfo.ftpinfo /opt/ftpinfo
passwd ftpinfo
passwd 123456
===============================================
vsftpd.conf
anonymous_enable=NO #禁止虚拟用户
chroot_local_user=YES #限制ftp用户只能在其主目录下