- Installation
Installation namesudo apt-get install vsftpd
to create a new usersudo useradd -m userftp -s /bin/bash
- Modify the configuration file
Modify the configuration file:sduo vim /etc/vsftpd.conf
add the following code:
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/allowed_users #后面需要自己创建
seccomp_sandbox=NO
local_root=/home/userftp/ #自己创建的用户名
local_enable=YES
write_enable=YES
utf8_filesystem=YES
-
Create a directory that users can access
sudo vim /etc/allowed_users
Add content:userftp #用户名
-
Turn on the service
sudo /etc/init.d/vsftpd start
Turn off the service:sudo /etc/init.d/vsftpd stop
Restart the service:sudo /etc/init.d vsftpd restart
-
Browser access (using Google browser, QQ browser support, IE browser does not support)
ftp://192.168.96.133/ # ftp:IP
User name and password are: must be in /etc/allowed_users
the inside, have permission