Yum Install vsftpd //Installing FTP Software
The configuration file for vim/etc/vsftpd/vsftpd.conf //ftp is
Anonymous_enable=yes //Set whether to allow anonymous users to log on to the FTP server by default YES (change to No to login with local user name password)
Local_enable=yes //whether to allow local users to log on to the FTP server, default to No.
Write_enable=yes //whether to open Write permission to the logged on user, is the global setting, the default No.
PAM_SERVICE_NAME=VSFTPD//Set the profile name of the PAM Authentication Service, which is stored in the/etc/pam.d/directory.
Userlist_enable=yes//Whether users in the user list are allowed to log on to the FTP server, default is not allowed
Tcp_wrappers=yes//using Tcp_wrqppers as host access control mode
local_root=/var/ftp //Set the directory where the user is logged in
Comment out the root line in /etc/vsftpd/user_list and/etc/vsftpd/ftpusers (this does not deny root login and other users will deny access)
# root
notes:
User_list This file is used to record "Do not allow" users to log on to the FTP server, usually some system default users
Root//By default, root and users below it are not allowed to log on to the FTP server. Users who are not allowed to log on can be added here. But keep in mind that each user takes a single row.
Ftpusers actually its content combined with user_list to the user detection
setsebool-p Ftpd_disable_trans=1Local Users cannot switch when configuring VSFTPD
Modify/etc/vsftpd/vsftpd.conf
Add at the last line
local_root=/var/ftpSet updirectory where local users are logged on
anon_root=/var/ftpSet updirectory where anonymous users are logged in
chmod 777/var/ftpSet permissions
Service vsftpd Restart Restart the FTP service (the firewall is turned off here)
Open Browser input Ftp://IP to login
Or
C:\users\administrator\desktop>ftp 192.168.100.4
Connect to 192.168.100.4.
(VsFTPd 2.2.2)
User (192.168.100.4: (none)): Root
331 Specify the password.
Password:
Successful Login.
ftp> put file path \ filename. txt
Build FTP Service in Linux