Install ftpServer, start, permission settings under Linux

1. Check and install the vsftpd software.
    Use the following command #rpm -qa |grep vsftpd to detect whether the vsftpd software is installed.
2. If it is not installed, execute the following yum command to install
    yum install vsftpd -y. If the previous command does not work, use the latter If this yum -y install vsftpd
    cannot be installed, refer to the following steps to configure the yum source to mount the image file to the CD under Linux, and then do a hard disk mount
    step1: Mount the image file of the virtual machine to the virtual machine Step 2: Mount the files in the CD- ROM
    drive to /media. The command is as follows: mount /dev/cdrom /media   
 The command to unmount is: umount /dev/cdrom
 If the above two steps still do not work, try to mount /dev/cdrom The content of the new yum.repo file under etc/yum.repos.d is as follows:
 [yum-media]
 name=yumroot
 baseurl=file:///media/
 enabled=1
 gpgcheck=0
 //Note: the value of enabled and gpgcheck is 10 million Make no mistake
 
3. Start the vsftpd service
  service vsftpd start To
 
  make FTP start automatically every time you boot up,
  method 1: Run the command: chkconfig --level 35 vsftpd on
  Method 2: Add to /etc/rc.local
  ???
  Access through ftp: ftp 192.168.1.178
  If the connection timeout is prompted, turn off the firewall, command: service iptables stop
  and then link again to connect to the
  anonymous login account: anonymous
  Password:
 
4. Set the vsftpd permission
/etc/vsftpd/ vsftpd.conf
/etc/vsftpd/user_list
/etc/vsftpd/ftpuusers Specifies which users cannot access the FTP server
5. Add vsftpd accounts and directories
 Default root directory: var/ftp/pub
 Allow upload settings:
  Allow anonymous uploads:
  ? ? ? ? ? ?
  Allow specified user to log in (root): Comment out the root  client software name
  in /etc/vsftpd/ftpuusers and /etc/vsftpd/user_list : filezilla

6, vsftpd command
help You can view all vsftpd related commands

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326751295&siteId=291194637