Linux Specifies FTP user-specific directories and permissions

Source: Internet
Author: User

Linux add FTP Users and set permissions

To add an FTP user to Linux and set the appropriate permissions, proceed as follows:
1, Environment: FTP for VSFTP. The user named Test is restricted. Restricted path is/home/test2, build User: Under root User: useradd-d/home/test Test//Add user test, and make test user's home directory for/HOME/TESTPASSWD Test//Set password for test 3, change the user's corresponding permission settings:
Usermod-s/sbin/nologin test//Limit user test cannot telnet, only ftpusermod-s/sbin/bash Test//user test back to normal usermod-d/test Test//change user T EST's home directory is/test
4, restrict the user can only access/home/test, cannot access other path modification/etc/vsftpd/vsftpd.conf as follows: www.2cto.com Chroot_list_enable=yes//Restrict access to own directory # (default Follows) chroot_list_file=/etc/vsftpd/vsftpd.chroot_list edit the Vsftpd.chroot_list file, add the restricted user, each user name line changes the configuration file, Do not forget to restart the VSFTPD server [[email protected] root]#/etc/init.d/vsftpd restart5, if you need to allow users to modify the password, but do not have Telnet login system permissions: usermod-s/usr /BIN/PASSWD test//user Telnet will go directly to the change interface

Author Aking21alinjuju http://www.2cto.com/os/201206/135771.html

Linux Specifies FTP user-specific directories and permissions

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.