In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to achieve the system account separation function in Pureftpd, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Environment: system FreeBSD freebsd.hcren.com 4.9-STABLE FreeBSD 4.9-STABLE
[size=18:4151c61130] [color=red:4151c61130] [b:4151c61130] Special thanks to Freebsdchina for jayvan technical support! [/ b:4151c61130] [/ color:4151c61130] [/ size:4151c61130]
: em02:: em02:: em02:
I have been studying freebsd for several months. But I have never found one easier to manage than the serv-u under Windows.
Ftp server software. The previous section of the server is using the vsftpd+ system quota, but the account is the account of the system itself. Although, I did.
/ sbin/nologin
But it still doesn't feel safe. I've tried. Proftpd mysql, but if an enterprise opens ftp, do you want to separate your system account from the system account?
Is it impossible to install mysql and other databases?
Next I will write out my pureftpd configuration. I am a rookie, where not to hope a lot of advice to the master!
I have all been installed in ports mode.
Freebsd# cd / usr/ports/ftp/pure-ftpd/
Default ports installation pure-ftpd does not support puredb requirements
Freebsd# vi Makefile
Join-- with-puredb
And then wq!
Freebsd# make WITH_LANG=simplifIEd-chinese install
Set up * virtual users, such as down users, whose groups are all 888 home directories / home/888
Freebsd# mkdir / home/888 freebsd# chown-R88888 / home/888 freebsd# / usr/local/bin/pure-pw useradd down-u 888-g 888-d / home/888
PassWord: enter twice
Enter it again:
Set up a user database:
Freebsd# / usr/local/bin/pure-pw mkdb / usr/local/etc/pureftpd.pdb
Modify the configuration file.
Freebsd# cd / usr/local/etc/ freebsd# cp pure-ftpd.conf.sample pure-ftpd.conf
Find # PureDB / etc/pureftpd.pdb
Lose the # and change the path to the one you just built. Mine is / usr/local/etc/pureftpd.pdb
Start pureftpd.
Freebsd# / usr/local/sbin/pure-config.pl / usr/local/etc/pure-ftpd.conf
D:\ > ftp 218.*
Connected to *. *
220-Welcome to Pure-FTPd [TLS]-
220-you are the 1st user with up to 50 connections
220-it's 13:20 local time. Server port: 21.
220 if there is no activity within 15 minutes, you will be disconnected.
User (218.9: (none)):
Okay. It's that simple. It is completely separated from the system account. If you want to use both the system account and the puredb account
Open UnixAuthentication yes in pure-ftpd.conf
Some items will be fine. Rename / usr/local/etc/rc.d/pure-ftpd.sh.sample to cp and remove .sample from startup.
The above content is how to achieve the system account separation function in Pureftpd. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.