vsftp is the abbreviation of very secure ftp. Its initial development concept is to build a secure ftp service. Now it is indeed a very safe and stable ftp service software, widely used as a file server in Unix/Linux operating systems.
Installing vsftp
Here is a demonstration of using yum to install the software. The software is very small, with a total size of less than 1M.
# yum install vsftpd
Open vsftp through systemctl
# systemctl start vsftpd
vsftp configuration file
Let’s check what configuration files the software has
# rpm -qc vsftpd /etc/logrotate.d/vsftpd /etc/pam.d/vsftpd /etc/vsftpd/ftpusers /etc/vsftpd/user_list /etc/vsftpd/vsftpd.conf
/etc/vsftpd/vsftpdThis is the main configuration file
/etc/pam.d/vsftpdThis is used by vsftp The configuration file related to the pam module
/etc/vsftpd/ftpusersis related to the previous configuration file and is used to restrict the login of ftp users. Let's take a look at which users are prohibited from logging in to ftp by default.
# cat /etc/vsftpd/ftpusers # Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody
/etc/vsftpd/user_list, this configuration file is related to userlist_deny in /etc/vsftpd/vsftpd. If userlist_deny=NO, the configuration file is not whitelisted and only allowed The user in this file logs in to ftp. If yes, it is a blacklist, and users in this file are not allowed to log in.
/etc/logrotate.d/vsftpd, this configuration file is the rotation rule of the log file of the vsftp service.
/etc/vsftpd/vsftpd.conf,This file is the main configuration file. Let’s take a look at the important options and their meanings. Note: If this option is commented out, it means that this feature is not enabled.
anonymous_enable=YES: Whether to allow anonymous users to log in
local_enable=YES: Whether to allow local users to log in, that is, in the /etc/passwd file User
write_enable=YES: Whether users are allowed to upload, modify, and delete files
local_umask=022: Default permissions for local users to upload files
#anon_upload_enable=YES: Whether to allow anonymous users to upload files,
#anon_mkdir_write_enable=YES: Whether to allow anonymous users to create directories
xferlog_enable=YES: Record upload and download information to /var/log/xferlog
The above is the detailed content of Linux installation configuration vsftp detailed configuration to build FTP. For more information, please follow other related articles on the PHP Chinese website!