Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create and validate vsftpd virtual users with MySql

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to build and verify vsftpd virtual users in MySql. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

1. Mysql install yum-y install mariadb-serversystemctl enable-- now mariadb.service1.2 build table, build database, build user mysql-e "CREATE DATABASE vsftpd;USE vsftpd;CREATE TABLE users (id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,name CHAR (50) BINARY NOT NULL,password CHAR (48) BINARY NOT NULL); INSERT INTO users (name,password) values ('qiu',password (' 123456')); INSERT INTO users (name,password) values ('zhang',password (' 654321'));" mysql-e "select * from vsftpd.users;"

Create a remote connection account mysql-e "create user vsftpd@'192.168.31.%' identified by 'Pana#123';" mysql-e "grant all on vsftpd.* to vsftpd@'192.168.31.%';" 2. Install FTP Server 2.1 install vsftpdyum install-y vsftpd2.2 install pam_mysqlyum-y install vsftpd gcc gcc-c++ make mariadb-devel pam-develwget http://prdownloads.sourceforge.net/pam-mysql/pam_mysql-0.7RC1.tar.gztar xf pam_mysql-0.7RC1.tar.gzcd pam_mysql-0.7RC1/./configure-- with-pam-mods-dir=/lib64/security make install2.2 files required to establish pam authentication cat > / etc/pam.d / vsftpd.mysql / etc/vsftpd/vsftpd.confecho "guest_username=vuser" > > / etc/vsftpd/vsftpd.conf2.5 restart the vsftpd service systemctl enable-- now vsftpd's article on "how MySql implements new and validated vsftpd virtual users" ends here Hope that the above content can be helpful 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report