Vsftp setting different user login ftp root directory is different
Create three users
[Email protected] ~]# Useradd Kids
[Email protected] ~]# Useradd Mini
[[email protected] ~]# useradd ts
[Email protected] ~]# passwd Kids
[Email protected] ~]# passwd Mini
[[email protected] ~]# passwd ts
Shared paths
[Email protected] data]# ll/data/
Drwxr-xr-x. 6 Kids kids 4096 1 months 11:26 Kids-acs
Drwxr-xr-x. Ten mini mini 4096 1 months to 11:36 mini-acs
Drwxr-xr-x. 4 TS TS 4096 1 months 5 01:07 ts-acs1
[Email protected] vsftpd]# vim vsftpd.conf
local_root=/data/ User Logon path
Chroot_local_user=yes lock users to their respective directories for their root directory
User_config_dir=/etc/vsftpd/userconfig User Configuration directory
[Email protected] vsftpd]# mkdir userconfig
[Email protected] vsftpd]# CD userconfig/
Configure the respective user to access the root directory
[Email protected] userconfig]# VIM Kids
[[email protected] userconfig]# VIM Mini
[[email protected] userconfig]# VIM TS
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/75/0E/wKioL1Yxw_ah-WzFAAB_7ORGLyU372.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiol1yxw_ah-wzfaab_7orglyu372.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/75/11/wKiom1Yxw8HgXP-2AACGwW2Vq-s517.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiom1yxw8hgxp-2aacgww2vq-s517.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/75/0E/wKioL1Yxw_iTw1EKAACDrsqxwPU144.jpg "style=" float: none; "title=" Image 3.png "alt=" Wkiol1yxw_itw1ekaacdrsqxwpu144.jpg "/>
Restart Service
[Email protected] vsftpd]#/etc/init.d/vsftpd restart
close vsftpd : Span style= "font-family: ' Times New Roman ';" >[ OK
start vsftpdfor vsftpd : [ OK ]
Login Confirmation
Modify permissions and Owner
Done
This article is from the "→おyǒňɡ Zhi ℃" blog, please be sure to keep this source http://sxlfxx.blog.51cto.com/4244111/1707716
Vsftp Setting different user login FTP root directory is different