Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of FTP service construction in linux-- 2. Home catalogue and blacklist and whitelist

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Operating environment

1 operating system: redhat 6.5

IP address: 192.168.10.128

Hostname: zred

2 operating system: win 7

IP address: 192.168.10.10

Confirm that the two hosts are interconnected.

Requirements: configuration home directory imprisonment, account blacklist and whitelist.

First, let's restart the service.

Then let's log in to ftp for a MOD user we created before using WIN7.

You can see that by default, we log in to the user's home directory, and we can upload files to the home directory.

At this time, we will find a problem, that is, switching file addresses through CD, which will pose a great threat to our system.

Here we are going to modify the interrupt value of the main configuration file, which is called the home directory.

[root@localhost ~] # vim / etc/vsftpd/vsftpd.conf

Delete the # in front of the callout line

If you restart the service, you will not be able to change directories.

Black and white list

This feature is managed in user_list under the vsftp directory.

[root@localhost ~] # vim / etc/vsftpd/user_list

Let's add a user to it.

[root@localhost vsftpd] # echo "mod" > > user_list

Restart the service and see if you can log in again.

Just don't enter the password.

This feature big switch can be seen on the last line of the main configuration file.

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report