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