Setting of the LinuxFTP Server

Source: Internet
Author: User
Linux Enterprise Application-Linux server application information. For details, refer to the following section. Q: I recently learned about Linux servers because of my work. How can I restrict access to a specific directory on a Linux FTP server?

A: Step 1: Create an FTP Guest group, run the Groupadd command, or use the FTP group (less/etc/group) created by the FTP server to check whether the group exists, if FTP Server is installed, this group exists );

Step 2: add an FTP user to the FTP group;

Step 3: Modify the "/etc/ftpaccess" file and add it to the Guestgroup definition: Guestgroup Ftp; or use Guestuser to directly specify the FTP user name, for example, Guestuser Ftpuser;

Step 4: copy the necessary files to the user's "$ HOME" Directory, which is mainly related to Ls. Generally, Ls requires Lib support. You must re-compile Ls, Copy the Lib directory, or Copy the built-in Ls of the FTP Server, for example, copy the Bin, Etc, and Lib directories under "/home/ftp/" to the root directory of the user and modify the permission (Chown Username. ftp *). Note: currently, FTP files in Linux do not need to be copied. At least Redhat6.1 does not need to be copied. Therefore, you can skip step 4.

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.