Installation of FTP in Ubuntu Linux

  1. Installation
    Installation name sudo apt-get install vsftpd
    to create a new usersudo useradd -m userftp -s /bin/bash
  2. 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
  1. Create a directory that users can access
    sudo vim /etc/allowed_users
    Add content:userftp #用户名

  2. 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

  3. 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_usersthe inside, have permissionInsert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/NewDay_/article/details/109024623