FTP server methods to restrict Linux users to their own directory _FTP server

Source: Internet
Author: User

Step One: Create an FTP guest group, using the Groupadd command, or an FTP group that you can create with an FTP server.

#less/etc/group//See if there are any, if the FTP server installed the group exists;

Step Two: Add the FTP user to the FTP group;

The third step: Modify the/etc/ftpaccess file, add the definition of Guestgroup: guestgroup ftp;

Or use Guestuser to specify the FTP user name directly, such as:

#guestuser Ftpuser;

Step Fourth: copy the necessary files to this user's $HOME directory, mainly with LS. General LS to Lib support, you have to recompile LS, or the Lib directory copy past, or copy the FTP server with LS, such as the/home/ftp/under the Bin,etc,lib three directory copy to the user's root directory, and modify the permissions:

Chown Username.ftp *

Note: now Linux under the FTP without copying these files, at least Redhat6.1 is not required to copy, so you can omit the fourth step.

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.