System: Centos6.5
Software: VSFTPD
-
Installation
Once installed, the service vsftpd start can be accessed, but does not require user password authentication.
-
Configure User Password Authentication
After the installation of the configuration file in:/etc/vsftpd directory, we only need to change the vsftpd.conf;
Vim/etc/vsftpd/vsftpd.conf
| Anonymous_enable=no #NO表示不允许匿名访问, yes to allow |
Add FTP Authenticated Users:
Useradd-g ftp-s/sbin/nologin FTP1 #把ftp1加入到ftp组中, and no landing system allowed
|
passwd FTP1 #设置ftp1pnd
|
Open the browser to enter the user password can log on;
3. Disable FTP users from switching to other directories in the system
Vim/etc/vsftpd/vsftpd.conf
|
Chroot_list_enable=yes
Chroot_list_file=/etc/vsftpd/chroot_list |
Write the user who needs to imprison the home directory to the Chroot_list file, one user per line;
Service vsftpd restart #重启vsftpd services;
Re-login Test ok!!!
This article from the "Shallow faint" blog, please be sure to keep this source http://cuixiang.blog.51cto.com/8204722/1695820
Linux FTP Setup