vsftp3 虚拟用户配置

先说两个错误

vsftpd: PAM unable to dlopen(/lib/security/pam_userdb.so): /lib/security/pam_userdb.so: cannot open shared object file: No such file or directory

应该是找不到pam_userdb.so. 我们把前面目录删除或你看下pam_userdb.so在那个目录

 cat /etc/pam.d/vsftp.vu

----------
auth required pam_userdb.so db=/etc/vsftpd/account
account required pam_userdb.so db=/etc/vsftpd/account

 

500 OOPS: vsftpd: refusing to run with writable root inside chroot ()

只要在/etc/vsftpd.conf

多加一个设置就可以了

allow_writeable_chroot=YES

 

 

/etc/vsftpd.conf文件配置

listen=YES

listen_ipv6=NO

anonymous_enable=NO

local_enable=YES

dirmessage_enable=YES

use_localtime=YES

xferlog_enable=YES

connect_from_port_20=YES

secure_chroot_dir=/var/run/vsftpd/empty

anonymous_enable=NO

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值