In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to configure ProFTPD in Ubuntu. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
What is ProFTPD
ProFTPD is a FTP server program popular in UNIX-like systems, which is similar to vsftpd, WU-FTP and other functions.
[official website] http://www.proftpd.org
Second, install ProFTPD
$sudo apt-get install proftpd
Add ftp groups and users
$groupadd ftpg
The / /-d parameter indicates the default directory
$useradd ftpu-d / Data/webapps/-g ftpg
/ / set password
$passwd ftpg
Use the Ftp client tool to test the connection:
The connection was successful.
4. Modify the user chroot
The connection is successful but the root directory of the user ftpu, that is, chroot, is not limited, and the user can also access the parent directory.
/ / modify proftpd configuration file
$vi / etc/proftpd/proftpd.conf
/ / remove the comments before the following lines #
# DefaultRoot ~
/ / restart proftpd
$/ etc/init.d/proftpd restart
Fifth, prohibit user terminals from logging in
/ / Edit / etc/passwd
$vi / etc/passwd
Ftpu:x:1006:1004::/Data/webapps/:/bin/sh
Modify to
Ftpu:x:1006:1004::/Data/webapps/:/sbin/nologin
After restarting proftpd, the ftp client prompts that it cannot connect:
-
530 Login incorrect.
-
After inspection, it is found that there is no / sbin/nologin in the shells list of the current system.
/ / add / sbin/nologin support
$vi / etc/shells
/ / add a line to the document
/ sbin/nologin
Restart proftpd, complete.
This is the end of this article on "how to configure ProFTPD in Ubuntu". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.