1. Installation prerequisites
1) rpm installation package: vsftpd-3.0.2-4.2.1.x86_64.rpm
2) Operating system (lsb_release -a): openSUSE 13.1 (Bottle) (x86_64)
2. Check whether it has been installed
rpm -qa | grep vsftp
If it is already installed, it can be uninstalled and reinstalled, or you can directly use the currently installed one.
3. Execute the installation
rpm -ivh vsftpd-3.0.2-4.2.1.x86_64.rpm
4. Permission configuration
Configuration file: /etc/vsftpd.conf
1) Enable LINUX user
anonymous_enable=NO anonymous users are not allowed
local_enable=YES enable local users
write_enable=YES Open local user write permission
local_umask=022 local file permissions
chroot_local_user=YES restricts operations in its own directory
2) Enable virtual users
If you haven't done it before, you can check the data and research it yourself if you need it;
5. Create an FTP user
1) Add a new user: useradd -m FTP username -d FTP user home directory
Note: You can create an FTP user group to manage FTP users uniformly
2) Set password: passwd FTP username
6. Create FTP file upload root directory
1) Switch to FTP user: su - FTP username
2) Create FTP file upload root directory: mkdir directory name
3) Switch back to root user: su - root or exit (only valid for switching to FTP user through root)
4) Delete the write permission of the user's home directory (otherwise log in with 500 error): chmod aw FTP user's home directory path
Seven, enable VSFTP service or reload configuration
1) Service related operations: service vsftpd {start|restart|stop}
2) Reload the vsftpd.conf file:
cd /etc/init.d
./vsftpd reload [命令帮助:./vsftpd {start|stop|status|try-restart|restart|force-reload|reload}]