Skills for establishing an FTP server in Linux (2)
Source: Internet
Author: User
Tips for setting up an FTP server in a Linux System (2)-Linux general technology-Linux technology and application information. For more information, see the following. Okay. Restart the ftp server to check the effect.
Is it the same after restart as before? Haha, This is the default ftp directory. Let's delete it and check again. How is it? Enter the user name and password.
New Problems
1. After Entering the user name and password, the user's root directory is displayed, and our WEB content is in the public_html directory.
2. You can jump to any other directory.
To solve these problems, we have to set vsftpd. conf.
# Start the chroot list (Change root)
Chroot_list_enable = YES
# Specify the location of the List
Chroot_list_file =/etc/vsftpd. chroot_list
Next, we need to write it in vsftpd. chroot_list. We want to restrict users so that they will not "drift "......
Now there are users in linyupark, so we only need to write sudo nano into it. Red Hat RHCE Certification
In this way, we have solved 2nd problems. login users can only activity in their user folders. Below we want to be more aggressive, so that they can only activity in public_html.
Still find vsftpd. conf
# This statement is not set by default. Add it by yourself.
User_config_dir =/etc/define a folder address for individual users.
Create a folder Based on the address you set, and then create a file with the same username as the folder. nano:
# Root address of the local user. Assume that the user is linyupark.
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.