In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to install VFSTP in Linux system". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
FTP is used for bidirectional transfer of control files over the Internet. You can set up an FTP server in Linux, allowing two groups to keep files.
1. Check installation vsftpd server
After entering the terminal as root (other accounts can enter the terminal with su root and enter the root mode), enter the following command in the terminal command window to verify: # rpm-qa| grep vsftpd。If the result reads "vsftpd-1.1.3-8," the vsftpd server is installed. If there is no reply, it is not installed in the system.
2. The system CD of the rhel version comes with the vsftpd installation package, so the next step is to mount the system CD under/media for retrieval.
3. The above screenshot shows that vsftpd server is not installed in this system, so install it with rpm command.
That is, install vsftpd command in terminal command window: #rpm -ivh vsftpd-1.1.3-8.i386.rpm.
(1) mount the CDROM drive first, rpm in/mnt/cdrom/Server directory, rpm -ivh vsftpd*
4. create user
1) Start the service first.
2) Create two users
5. Configuration of vsftpd
After installation, there will be three configuration files in the/etc/vsftpd/path.
vsftpd.conf: master configuration file
ftpusers: Specifies which users cannot access the FTP server, including important users such as root.
user_list: Whether the specified user can access the ftp server is determined by the configuration of userlist_deny in the vsftpd.conf file. userlist_enable=YES, userlist_deny=YES, userlist_file=/etc/vsftpd/user_list. These three configurations allow users in the file to access FTP.
(1) Check the default configuration of the main configuration file: (Use: cat /etc/vsftpd/vsftpd.conf| grep -v '^#';)
(2) Modify the configuration file:
After logging in ftp, you will find that users can access other directories and have mpsp group permissions, which is not allowed. We need to control the user's access scope under its home directory. The method is as follows:
a. vi /etc/vsftpd/vsftpd.conf Go into the ftp configuration file directory and edit this file,
b. Find #chroot_list_enable=YES, delete the previous #, indicating that this restriction function is enabled;
Find chroot_list_file: chroot_list_file=/etc/vsftpd/chroot_list, delete the previous #, which means that this restriction function is enabled; add chroot_local_use=NO
(press i to start editing after entering the edit box)
c. After entering the configuration file, add the following three lines at the end:
① userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.user_list
d. Prohibiting anonymous user login
(After editing, press esc and use ": wq" to save and exit)
e. Edit some files
① Find vsftpd.chroot_list file in etc directory and enter editing state
Add the usernames you want to restrict, one user per line, e.g. ftp2
(After editing, press esc and use ": wq" to save and exit)
② Enter vsftpd directory, find vsftpd.user_list, type ftp11, which means ftp11 is allowed to log on ftp server.
(After editing, press esc and use ": wq" to save and exit)
Then on this machine, through the console, use ftp1 to access the system through ftp, users successfully log in, and successfully restricted to their own home directory, unable to access other directories.
Two users were created, ftp1 and ftp2.
View ftp status sestatus -b| grep ftp:
Then enter:
Close the firewall:
The following steps are used to ping hosts and virtual machines:
End result:
VFSTP is included by default in all versions of Linux, so VFSTP is a good choice.
"Linux system how to install VFSTP" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.