vsftpd pam_mysql_vsftpd+mysql+pam虚拟用户无法登录ftp服务器,请给位大侠帮忙!
"/etc/pam.d/vsftpd文件配置如下:
#%PAM-1.0
auth sufficient /lib/security/pam_mysql.so user=vuser passwd=123 host=localhost db=ftpvuser table=users usercolumn=name passwdcolumn=passwd crypt=2
account sufficient /lib/security/pam_mysql.so user=vuser passwd=123 host=localhost db=ftpvuser table=users usercolumn=name passwdcolumn=passwd crypt=2
#auth sufficient /lib/security/pam_userdb.so db=/etc/vsftpd/vuser
#account sufficient /lib/security/pam_userdb.so db=/etc/vsftpd/vuser
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so
/etc/vsftpd/vsftpd.conf文件配置如下:
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
ascii_upload_enable=YES
ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
download_enable=YES
guest_enable=YES
guest_username=vuser
user_config_dir=/etc/vsftpd/vuserconf
mysql创建的数据库及登录情况:
[root@server ~]# mysql -u vuser -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 24
Server version: 5.0.45 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use ftpvuser
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from users
-> ;
+-----------+------------------+
| name | passwd |
+-----------+------------------+
| qiaojiayi | 446a12100c856ce9 |
| qiaozelin | 446a12100c856ce9 |
| test | 446a12100c856ce9 |
+-----------+------------------+
3 rows in set (0.00 sec)
ftp登录情况及错误提示如下:
[root@server ~]# ftp 125.96.214.208
Connected to 125.96.214.208.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (125.96.214.208:root): qiaojiayi
331 Please specify the password.
Password:
530 Login incorrect.
Login failed."
匿名和本地用户可以登录如下:
[root@localhost ~]# ftp 125.96.214.208
Connected to 125.96.214.208.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (125.96.214.208:root): ftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.
[root@localhost ~]# ftp 125.96.214.208
Connected to 125.96.214.208.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (125.96.214.208:root): qiaoxj
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.
mysql虚拟用户无法登录如下:
[root@localhost ~]# ftp 125.96.214.208
Connected to 125.96.214.208.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (125.96.214.208:root): qiaojiayi
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> quit
221 Goodbye.
[root@localhost ~]# ftp 125.96.214.208
Connected to 125.96.214.208.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (125.96.214.208:root): qiaozelin
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
vsftpd pam_mysql_vsftpd+mysql+pam虚拟用户无法登录ftp服务器,请给位大侠帮忙!相关推荐
- linux下配置vsftpd虚拟用户为登录用户
1.安装vsftpd 安装依赖包: yum -y install pam pam-devel db4 de4-devel db4-uitls db4-tcl 新建vsftpd系统用户: #建立Vsft ...
- oracle虚拟用户和密码,vsftpd配置虚拟用户为登录用户
1.安装vsftpd 安装依赖包: yum -y install pam pam-devel db4 de4-devel db4-uitls db4-tcl 新建vsftpd系统用户: #建立Vsft ...
- vsftpd服务安装与虚拟用户配置
vsftpd的全名是"Very secure FTP Daemon" 一.安装vsftpd 安装db4-util用于生成认证文件 yum -y install db4-utils ...
- Vsftp与PAM虚拟用户
Vsftp与PAM虚拟用户 使用yum 安装vsftp yum install vsftpd pam pam-* db4 db4-* 创建一个保存用户及密码的文件 cd /etc/vsftpd/ to ...
- proftpd mysql_ProFTPD支持MySQL添加虚拟用户认证及磁盘限额
--prefix=这是用来指定要把ProFTPD安装在哪个位置,在这里我把ProFTPD安装在了 /opt/proftpd 目录下,您不必自己建目录 /opt/proftpd ,在安装的时候这个目录会 ...
- RHEL5 基于虚拟用户验证的VSFTP服务器
RHEL5基于虚拟用户验证的VSFTP服务器 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:off ...
- ie登录显示登录到ftp服务器,Ie浏览器登录ftp服务器
Ie浏览器登录ftp服务器 内容精选 换一换 通过Web浏览器登录云堡垒机系统,上报您的IP地址不在允许登录的范围内!错误.通过Web浏览器登录云堡垒机系统,上报您的MAC地址不在允许登录的范围内!错 ...
- ftp服务器登录进去文件不全,登录ftp服务器文件显示不出
登录ftp服务器文件显示不出 内容精选 换一换 外部镜像文件在从原平台导出前,没有按照"Windows操作系统的镜像文件限制"的要求完成初始化操作,推荐您使用弹性云服务器完成相关配 ...
- ftp服务器老是显示登录界面,登录ftp服务器总提示登陆框
登录ftp服务器总提示登陆框 内容精选 换一换 已成功登录Java性能分析.待安装分析辅助软件的服务器已开启sshd.Java性能分析优先选用非交互shell(non-interactive shel ...
最新文章
- php大商创 安装,大商创X2020最新纯净服务器安装教程
- linux常用管理命令
- 2018-2019 20165208 网络对抗 Exp9 Web安全基础
- PAT甲级 -- 1148 Werewolf - Simple Version (20 分)
- SAP ABAP关键字在Chrome浏览器里高亮显示的实现原理 - How is ABAP keyword highlight implemented in Chrome
- 软件工程之个人项目--词频统计
- java实现遍历树形菜单方法——TreeAction实现
- 数仓dw怎么建_从0建设离线数据仓库
- 逻辑运算和作用域的问题
- leetcode Add Digits
- Python文件操作与函数目录
- 拓端tecdat|Python风险价值计算投资组合VaR(Value at Risk )、期望损失ES(Expected Shortfall)
- java 2d 图形_Java学习笔记--Swing2D图形
- oracle 64位数据源,64位Windows 7下32位 Oracle(含XE)ODBC 数据源的配置
- 超详细的Java入门到精通完整学习教程,学Java一定得收藏。
- 【计算机网络】信源编码——香农三大定理
- Excel批量插入图片小技巧
- r语言quantmond_R中的关于极值理论的包
- 华硕路由官方固件修改hosts可重启路由
- 2021-12-2 uniapp地图定位的研究
热门文章
- python装饰器详解-这是我见过最全面的Python装饰器详解!没有学不会这种说法!...
- python 入门基础-如何学习Python,以及新手如何入门?
- 零基础学python难吗-终于明白0基础学python难吗
- python经典实例-Python机器学习经典实例
- python turtle画熊猫人_Python 使用turtle插件,画小猪佩奇
- 关于用iframe大框架覆盖小框架的问题
- 使用vue-qriously插件,在vue项目中生成二维码
- LeetCode 116/117 填充每个节点下一个右侧指针
- 程序员怎样学习python_一个开发十年的程序员论:学习Python最正确的步骤(0基础必备)...
- python定时启动代码_python每天定时运行某程序代码