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