SS shadow是 register                                            

pureftpd+mysql虚拟用户认证–支持中文用户名

Linux service 赵浮云 109℃ 0评论

有一个很重要的库: libmysqlclient.so.20
[root@localhost sbin]# ldd pure-ftpd
linux-vdso.so.1 => (0x00007fffed59c000)
libmysqlclient.so.20 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb5c7e6c000)
libm.so.6 => /lib64/libm.so.6 (0x00007fb5c7be8000)
librt.so.1 => /lib64/librt.so.1 (0x00007fb5c79e0000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fb5c77db000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fb5c756f000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fb5c718b000)
libz.so.1 => /lib64/libz.so.1 (0x00007fb5c6f74000)


libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fb5c6d3d000)
libpam.so.0 => /lib64/libpam.so.0 (0x00007fb5c6b2f000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb5c679a000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb5c82d9000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fb5c6556000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fb5c626f000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fb5c606a000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fb5c5e3e000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fb5c5c3b000)
libaudit.so.1 => /lib64/libaudit.so.1 (0x00007fb5c5a16000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fb5c580b000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fb5c5608000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fb5c53ed000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fb5c51ce000)
[root@localhost sbin]# cat /etc/redhat-release
CentOS release 6.8 (Final)

拷贝之后的库文件:
[root@localhost sbin]# ls /lib64/libmysqlclient.so.20
/lib64/libmysqlclient.so.20

[root@localhost sbin]# pwd
/usr/local/pureftpd/sbin

[root@localhost sbin]# /etc/init.d/pureftpd restart
停止 pure-config.pl:
正在启动 pure-config.pl:Running: /usr/local/pureftpd/sbin/pure-ftpd –daemonize -A -c40000 -B -C2000 -D -E -fftp -H -I15 -lmysql:/usr/local/pureftpd/etc/pureftpd-mysql.conf -L400000:30 -m400000 -p6200:7200 -s -S0.0.0.0,6100 -U133:022 -u0 -k99 -Z -8utf-8 -9utf-8

[root@localhost sbin]# ldd pure-ftpd
linux-vdso.so.1 => (0x00007ffe427a7000)
libmysqlclient.so.20 => /lib64/libmysqlclient.so.20 (0x00007fcb02fd3000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcb02db6000)
libm.so.6 => /lib64/libm.so.6 (0x00007fcb02b31000)
librt.so.1 => /lib64/librt.so.1 (0x00007fcb02929000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fcb02725000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007fcb024b8000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007fcb020d4000)
libz.so.1 => /lib64/libz.so.1 (0x00007fcb01ebe000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fcb01c86000)
libpam.so.0 => /lib64/libpam.so.0 (0x00007fcb01a78000)
libc.so.6 => /lib64/libc.so.6 (0x00007fcb016e4000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fcb013dd000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcb011c7000)
/lib64/ld-linux-x86-64.so.2 (0x00007fcb03844000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fcb00f83000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fcb00c9b000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fcb00a97000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fcb0086b000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fcb00667000)
libaudit.so.1 => /lib64/libaudit.so.1 (0x00007fcb00443000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fcb00238000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fcb00034000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fcaffe1a000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fcaffbfa000)
拷贝启动脚本:
[root@localhost pureftpd]# ls
bin etc pureftpd sbin share
[root@localhost pureftpd]# cp pureftpd /etc/init.d/
cp:是否覆盖”/etc/init.d/pureftpd”? y
[root@localhost pureftpd]# pwd
/usr/local/pureftpd

 

QQ截图20160726150328

QQ截图20160726150500

用户名是JID,密码是password  在/ust/local/pureftp/pureftpd-mysql.conf 配置文件中可设置mysql 服务器ip 地址,mysql登陆用户名与密码

,ftp登陆用户名与密码所取字段

sdf20160922105753

linux文件服务

转载请注明:赵浮云的blog » pureftpd+mysql虚拟用户认证–支持中文用户名

喜欢 (1)or分享 (0)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址