In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to build a FTP server, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The construction of FTP server is very simple.
Apt-get install vsftpd
It is also easy to start, stop, and restart vsftpd services.
Service vsftpd start | stop | restart
Account number
A ftp group and ftp user will be produced after installation
Modify a user's password
Passwd ftp
Configuration
Key configuration, modify vsftpd configuration file vi / etc/vsftpd.conf
# Anonymous access prohibited
Anonymous_enable=NO# accepts local user local_enable=YES# can upload write_enable=YES# enable users in chroot_list_file can only access the root directory chroot_list_enable=YESchroot_list_file=/etc/vsftpd.chroot_list# set a fixed directory, add at the end. If you do not add this line, each user corresponds to their own directory local_root=/srv/ftp
Access permission
Chroot_list_file exception file path, default is / etc/vsftpd.chroot_list
Whether chroot_list_enable enables files for chroot_list_file configuration
The file of YES chroot_list_file configuration takes effect
Invalid file for NO chroot_list_file configuration
Chroot_local_user prohibits access to other directories
Users cannot switch to a directory other than the home directory other than the file configured by YES chroot_list_file
In addition to the NO chroot_list_file configuration file, the user can switch to
Error handling
530 login incorrect
Two ways of treatment
1)。 Modify the file vi / etc/pam.d/vsftpd and comment out
# auth required pam_shells.so
2)。 Add / sbin/nologin on the last line of / etc/shells
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
Enabling chroot_local_user must set the accessed root directory to be unwritable
Chmod a home/user / thank you for reading this article carefully. I hope the article "how to build a FTP server" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!
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.