In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.