1、 Environmental Science :ftp by vsftp.
The user is called test. The default path is /home/test

2、 A new user ( Now it's root user )
Run the command :“useradd -d /home/test test” // Add user test, And formulate test The user's home directory is /home/test
Run the command :“passwd test” // by test Set the password , Enter the same password twice after running

3、 Change the user's permission settings
Run the command :“usermod -s /sbin/nologin test” // Limited users test You can't telnet, Can only ftp
Run the command :“usermod -s /sbin/bash test” // user test Back to normal
Run the command :“usermod -d /test test” // Change user test The main directory of is /test

4、 Restrict user access to /home/test, No other paths can be accessed
modify /etc/vsftpd/vsftpd.conf as follows :
# Restrict access to own directory
chroot_list_enable=YES
# (default follows) Add restricted users
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list

5、 Restart the server
After changing the configuration file , Don't forget to restart vsFTPd The server
Run the command :/etc/init.d/vsftpd restart

6、 If you need to allow users to change their passwords , But there was no telnet Access to the system
Run the command :“usermod -s /usr/bin/passwd test” // user telnet After that, you will directly enter the encryption interface

add to FTP user (vsftpd) More articles about

  1. stay linux Add ftp user , And set the corresponding permissions

    stay linux Add ftp user , And set the corresponding permissions , The operation steps are as follows : 1. Environmental Science :ftp by vsftp. The user name is restricted to test. The restricted path is /home/test 2. Build users : stay root Under the user : useradd ...

  2. linux Add ftp user , And set the corresponding permissions

    stay linux Add ftp user , And set the corresponding permissions , The operation steps are as follows : 1. Environmental Science :ftp by vsftp. The user name is restricted to test. The restricted path is /home/test 2. Build users : stay root Under the user : useradd ...

  3. linux add to ftp User and login configuration details

    Different types Unix There's a difference There are some differences between different versions stay linux How to add ftp user ( One ) Modify the configuration file vi /etc/vsftpd/vsftpd.conf stay 96 That's ok ,97,98 That's ok 96 chroot ...

  4. Linux add to FTP Users and set permissions

    stay linux Add ftp user , And set the corresponding permissions , The operation steps are as follows : 1. Environmental Science :ftp by vsftp. The user name is restricted to test. The restricted path is /home/test 2. Build users , In the command line state , stay root Under the user : shipment ...

  5. CentOS7 add to FTP Users and set permissions

    step 1 Installation configuration Vsftp The server One . Configure firewall , Turn on FTP Port required by the server CentOS 7.0 The default is firewall As a firewall , Here instead iptables A firewall . 1. close firewal ...

  6. Linux How to add / Delete FTP Users and set permissions

    stay linux Add ftp user , And set the corresponding permissions , The operation steps are as follows : 1. Environmental Science :ftp by vsftp. Set the user name to test. The restricted path is /home/test 2. Create users : stay root Under the user :   user ...

  7. Linux How to configure ftp The server 、 to ftp The server adds access users

    I am qq The group also has a lot of technical documentation , I hope I can help you ( Do not add non-technical ). QQ Group :   281442983 ( Click the link to join the group :http://jq.qq.com/?_wv=1027&k=29Lo ...

  8. CentOS service ftp(vsftpd)

    1. Check if it is installed vsftpd yum list installed | grep vsftpd 2. install vsftpd yum install -y vsftpd 3. Check vsftpd system ...

  9. centos How to add ftp Catalog

    Check Centos Is... Installed on the server vsftpd rpm -qa |grep vsftpd If not, it is not installed 2. install vsftpd yum -y install vsftpd 3. open vsftpd ...

Random recommendation

  1. linux Check out the release

    redhat system cat /etc/redhat-release other lsb_release -a

  2. controller analysis xml file

    public ActionResult Index() { XmlReader reader = null; try { // Get path ..\TGB.Common.Message\TGB.Common ...

  3. angularjs select The first one in the loop option For the space problem

    When select Of ng-module It's empty time , select Show blank lines . solve : Appoint ng-module The default value of .

  4. DB2 Table spaces and buffer pools

    brief introduction For those who just set foot in DB2 In the field of DBA Or the future DBA for , The design and performance selection of new databases can be confusing . In this paper , We will discuss DBA Two aspects of making important choices : Table spaces and buffer pools . Table space and buffer pool design ...

  5. 【 turn 】 Code editor ( One )-TSynCompletionProposal usage

    Be careful , This series is reproduced from http://blog.163.com/zom1995@126/ Someone on the Internet gave me one SynEdit This thing , Because I like to make my own code editor , But if you use Delphi It's direct , Just like I am now ...

  6. CentOS Start the script to run the program automatically

    Sometimes we need to set up a script in the server , Let him start it as soon as he starts it . The method is as follows : cd /etc/init.dvi youshell.sh   # take youshell.sh Modify your script name and write your own script ...

  7. setTimeout、clearTimeout、setInterval,clearInterval —— Little timer

    Let's see the effect first No more code ~ <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Typ ...

  8. 12,C++ in .* Where it can be ? What's the use ?

    .* What does the operator mean ? Several times I met .*, But don't know how to use . It turned out , Can be reflected in the member function pointer call . 1, Function pointers point to public, non static member functions . here , An object must be created to call the function pointer . class Cont ...

  9. struts2-- Use wildcards in the configuration file

    struts2 The configuration file is struts.xml.. You can use wildcards in this configuration file .. The advantage is , Greatly reduces the content of the configuration file .. Of course , The corresponding price is readability .. The principle of using wildcards is Convention is higher than configuration ...

  10. Read HttpWebResponse Two methods of flow and problems to be noticed

    1.  Get stream HttpWebRequest request= (HttpWebRequest)WebRequest.Create(uri); // structure http request     request ...