vsftpd + mysql + virtual users
2019独角兽企业重金招聘Python工程师标准>>>
There was nothing Sutra on Monday, decided to write this article, how to raise the working ftp server vsftpd with users in the mysql database with encrypted passwords.OS: FreeBSD-STABLE 6/3 essence of the mechanism: vsftpd deals with pam, pam and communicate with mysql.
|
I put no support for SSL. They put further module pam_mysql.so
|
After installation, makes the link
|
Put mysql.
|
In / etc / rc.conf add:
|
Run mysql
|
Create a database where to store user names and passwords from users. The owner of the base vsftpd, password ftpdpass
|
|
Create the table:
|
Next, the team # adduser create a user with similar data / etc / passwd
|
Now ftp server configuration:
/ usr / local / etc / vsftpd.conf
|
Next, create a directory (if honestly I do not understand why he, but it seems sonecessary)
|
Create a configuration file vsftpd, pam that would be operated with the FPT server)
# ee /etc/pam.d/vsftpd
|
In the file / etc / pam.d / vsftpd, make sure that would have been only two lines (the first starts with auth required, second account required), without hyphenation
Add a test user with a login and password secret testuser :
|
And a little more user rights to directories:
|
Create a FTP server zagruzochnik:
# ee /usr/local/etc/rc.d/vsftpd.sh
|
Run:
|
Or you can reboot ...
PS:As I always use a firewall pf, add in / etc / pf.conf rules for ftp server:
|
lines
pasv_min_port=50000
pasv_max_port=50100
in / usr / local / etc / vsftpd.conf mean that the ports are opened with 50,000 to 50,100for passive mode FTP server and can only be a maximum 100 concurrent session.
pss: User can start with a regular and phpmyadmin
Very useful: Read the original article - it was written for linupsa Dibivan :
|
lines
pasv_min_port=50000
pasv_max_port=50100
in / usr / local / etc / vsftpd.conf mean that the ports are opened with 50,000 to 50,100for passive mode FTP server and can only be a maximum 100 concurrent session.
pss: User can start with a regular and phpmyadmin
Very useful: Read the original article - it was written for linupsa Dibivan
http://www.howtoforge.com/vsftpd_mysql_debian_etch
转载于:https://my.oschina.net/u/187928/blog/33893
vsftpd + mysql + virtual users相关推荐
- mysql virtual 关键字_MySQL5.7 virtual关键字
本机调试保存数据时报错: Hibernate: /* insert com.kyhtech.health.entity.bbs.Comment */ insert into co_comment (c ...
- mysql virtual 关键字_C# virtual关键字详解
C# virtual 是虚拟的含义,在 C# 语言中,默认情况下类中的成员都是非虚拟的,通常将类中的成员定义成虚拟的,表示这些成员将会在继承后重写其中的内容. virtual 关键字能修饰方法.属性. ...
- Samba+Vsftpd+Mysql搭建平台实验
转载于:https://blog.51cto.com/firerat/486898
- vsftpd+pam+mysql实现ftp构建
一.安装所需要程序 1.事先安装好开发环境和mysql数据库; 首先配置好yum的server.repo文件 [root@localhost yum.repos.d]# cd [root@localh ...
- centos vsftp mysql_CentOS6.4 实现基于mysql的vsftpd
大纲一.安装所需要的软件包 二.创建虚拟用户账号 三.配置vsftpd 四.启动vsftpd服务并查看 五.关闭防火墙与SElinux 六.配置虚拟用户有不同的访问权限 一.安装所需要的软件包 1. ...
- vsftpd pam mysql_vsftpd+mysql+pam实现基于数据库的安全的ftp服务
1.方案分析 mysql:存储用户信息的,可以放vsftpd用户的信息 pam:可插入用户认证模块 VSFTPD:安全的ftp服务 2涉及到的知识点: vsftp 软件安装.启动服务,监听端口,配置文 ...
- FTP服务学习笔记之基于MySQL+PAM的vsftpd虚拟用户
基于mysql+PAM的vsftpd虚拟用户配置 一.实验说明 操作系统:Redhat5.8_X64bit 实验平台:VMware Workstation 所需要的软件包:pam_mysql-0.7R ...
- vsftpd+pam_mysql+mysql
vsftpd+pam_mysql+mysql RH5.0enterprise上实现,转载marion的异样足迹. 一.安装相关软件包 mysql-5.0.41 pam_mysql-0.7RC1 vsf ...
- mysql pam 配置_pam_mysql 安装配置总结 (结合vsftpd)
前一段时间,论坛里总有朋友问到pam-mysql的安装问题.比较典型的有: vsftp1.2+mysql4.1+pam_mysql0.5在RedHat AS4(32bit)下好像是有bug 还是mys ...
最新文章
- java map class_java – 将通用Class参数限制为实现Map的类
- SQL积累-SQL取得字符串中的文件名
- Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法
- arrays中copyof复制两个数组_数组,及二维数组
- java 日期计算类_java日期计算工具类【包含常用的日期计算方法】
- when will be _oControlStore available for S4.controller.js
- 简单易变的CSS阴影效果
- Asp Net Core 5 REST API 使用 RefreshToken 刷新 JWT - Step by Step(三)
- 华为21级程序员月薪曝光:270k封神!众网友直呼长见识……
- mysql漏洞扫描工具_Rad爬虫结合W13Scan扫描器挖掘漏洞
- python常胜将军问题_Python中最常见的10个问题(列表)
- CTFHUB Web前置技能 题解记录(HTTP部分)
- [C/C++11语法]_[0基础]_[lamba 表达式介绍]
- 转载(Asp.net Core 中试使用ZKWeb.System.Drawing)
- 29.FFmpeg+OpenGLES+OpenSLES播放器实现(三.FFmpeg配置和编译脚本)
- 计算机综述(computer overview)
- Android如何实现全局的护眼模式
- 基于51单片机自行车码表霍尔测速里程显示超速报警方案原理图设计
- MacPro 迁移至 Mac Mini-M1 与 踩坑 For 后端开发
- JAVA中GUI在Button中设置中文乱码问题
热门文章
- pyqt5教程13:客户定制组件
- Halcon初学者知识 【13】如何在MFC中调用Halcon代码
- Matlab ANN人工神经网络 validation checks
- master slave mysql_Mysql---Master-slave复制方案 - dba成长之路
- 博客频道 - CSDN.NET
- java接收的文件转换成临时文件_Android中怎样使用createTempFile实现将字节数据创建到临时文件并转换成FileOutputStream和FileInputStream...
- 怎么设置ppt页面的长度和宽度_将PPT里的字弄很小,PPT就有逼格吗?
- C++单链表学习随想
- RCNN SPP_net
- Java 源码学习系列(三)——Integer
- (五)Java工具类ArrayUtils详解