Reprint statement: If reproduced please indicate the source, otherwise will be held accountable.
[Email protected] ~]# Rpm-qa|grep vsftpd
Vsftpd-2.2.2-21.el6.x86_64
Yum Install vsftpd #如果出现错误有可能是python版本不对应导致,
Confirm/usr/bin/python Next version is how much, then Vim/usr/bin/yum will! #/usr/bin/python2.6 plus the version number, then the Yum installation.
[[Email protected] ~] #vim/etc/vsftpd/vsftpd.conf
[[Email protected] ~] #chmod 775/var/ftp
Create a user and set a password
[[Email protected] ~] #sestatus-B | grep FTP View context to prevent home directories from being opened
[[Email protected] ~] #setsebool-P ftp_home_dir on
Note: User_list users are not allowed to log in when Userlist_enable=yes Userist_deny=yes
Userlist_enable=yes Userist_deny=no, user_list users can login browser, can not explorer login.
All users in the Ftpuser file are not logged in, the FTP system is default and there is no switch control.
Turn off the firewall or open the port
-
|
Chroot_local_user=yes
|
Chroot_local_user=no
|
chroot_list_enable=yes |
1. All users are limited to their home directory 2. Use the Chroot_list_file specified list of users as "exceptions", unrestricted |
1. All users are not restricted to their home directory under 2. Use the user list specified by Chroot_list_file, which are restricted as "exceptions" |
Chroot_list_enable=no |
1. All users are limited to their home directory 2. Do not use the user list specified by chroot_list_file, no "exception" users |
1. All users are not restricted to their home directory under 2. Do not use the user list specified by chroot_list_file, no "exception" users |
This article is from "You 70 years" blog, please be sure to keep this source http://chavaz.blog.51cto.com/6876806/1868384
Build an FTP server on Linux and set up local users to log on.