Vsftp Setting different user login FTP root directory is different

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.