Linux ftp user creation process 1. environment: ftp is vsftp. The restricted user name is test. The restricted path is/home/test2. create a user: under the root user: useradd-d/home/testtest // add the user test, and the main directory of the test user is/home/testpasswd... linux ftp user creation process 1. environment: ftp is vsftp. The restricted user name is test. The restricted path is/home/test 2. create a user: under the root user, add useradd-d/home/test/to add the user test, set/home/test passwd test // as the main directory of the test user. 3. change the user's permission settings: usermod-s/sbin/nologin test // user test cannot be telnet, only ftp usermod-s/sbin/bash test // user test can be restored to normal usermod-d/test // change the main directory of user test to/test 4 and restrict user access to/home /test, you cannot access other paths to modify/etc/vsftpd. conf: chroot_list_enable = YES // restrict access to its own directory # (default follows) chroot_list_file =/etc/vsftpd. chroot_list edit vsftpd. add the restricted users to the chroot_list file. change the configuration file for each user name line. do not forget to restart the vsFTPd server [root @ linuxsir001 root] #/etc/init. d/vsftpd restart 5. if you need to allow the user to change the password, but do not have the permission to log on to the system via telnet: usermod-s/usr/bin/passwd test // after User telnet, the password change interface is directly displayed.
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.