Start the VSFTP server
Run under A:cenos: Yum install vsftpd
B. After logging into the Linux host, run the command: "Service vsftpd start"
C. To allow FTP to start automatically every time, run the command: "Chkconfig--level vsftpd on"
2. Set FTP Permissions
A. Edit the vsftp configuration file and run the command: "vi/etc/vsftpd/vsftpd.conf"
B. Change "Anonymous_enable=yes" in the configuration file to "Anonymous_enable=no"
C. Save the changes, press ESC, run the command: ": Wq"
This turns off the Anonymous Logon feature.
3. Add FTP Account
A. After logging in to the Linux host, run the command: "Useradd ftpadmin-s/sbin/nologin". The account path is pointed to the/home/ftpadmin directory by default;
If you need to point the user to a different directory, run the command: Useradd ftpadmin-s/sbin/nologin–d/www (Other directory)
B. Set ftpadmin user password, Run command: "passwd ftpadmin"; Enter the password two times, after the successful match, set the Ftpadmin user's password.
C. Test the connection, you can enter the Ftp://IP in the "My Computer" address bar to connect to the FTP server, as prompted to enter the account password.
Problems:
First, 530 Permission denied
Troubleshooting:
1. First check whether the system has vsftp service turned on, and if not, start the service first.
Method 1.setup--system Service--self-starting service
Method 2: Interface settings, service vsftpd restart
2. View the configuration
VSFTPD configuration, VSFTPD user Connection control configuration is limited in the configuration file.
Vsftpd.ftpusers: Located in the/etc directory. It specifies which user accounts cannot access the FTP server, such as root.
Vsftpd.user_list: Located in the/etc directory. The user account in this file cannot access the FTP server by default, only allow access if the USERLIST_ENABLE=NO option is enabled in the VSFTPD. conf configuration file.
Vsftpd.conf: Located in the/ETC/VSFTPD directory. From the configuration of FTP servers that define user Login control, user Rights control, timeout settings, server function options, server performance options, server response messages, and so on.
3. After the configuration modification is complete, perform the service vsftpd restart Restart VSFTPD Services
Two
Vsftp Oops:cannot Change directory:/home/
Login FTP and then enter the user name and password appears: Oops:cannot change directory:/home/**********
Workaround: Enter Setsebool Ftpd_disable_trans 1 on the terminal and restart the VSFTP Services service vsftpd Restart if you enter the above command: Could not change active Booleans: Invalid Boolean is due to selinux problem followed by the terminal input: Setsebool ftp_home_dir=1 Restart VSFTP service can solve the problem
Reprint Address: 49847677
Linux Build FTP Server