Linux FTP Service build--2. Home directory imprisonment and black and white list

Source: Internet
Author: User

Operating Environment

1 Operating system: Redhat 6.5

IP Address: 192.168.10.128

Host Name: zred

2 Operating system: Win 7

IP Address: 192.168.10.10

Verify that two hosts are interconnected.

Requirements: Configure home directory imprisonment, account black and white list.

First, we restart the service.

Then we use a mod user created before WIN7 to log on to the FTP

You can see the default, we are logged in the user's home directory, and can upload files to the home directory.

At this point we will find a problem, that is, to switch the file address through the CD, which will pose a great threat to our system.

Here we are going to change the main profile interrupt value, called the home directory to imprison .

[Email protected] ~]# vim/etc/vsftpd/vsftpd.conf

The # number before the label line is deleted

Restart the service and then look at it, you won't be able to switch directories.

Black and white list

This feature is managed in the user_list in the Vsftp directory.

[Email protected] ~]# vim/etc/vsftpd/user_list

We add a user to go in.

[[email protected] vsftpd]# echo "mod" >> user_list

Restart the service and try to log in again.

Just don't give me the code.

This feature large switch can be seen in the last line of the main configuration file.

If you add a line of deny, the list becomes whitelisted and only users on the list can log in to FTP

Linux FTP Service build--2. Home directory imprisonment and black and white list

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.