虚拟用户FTP登录530——vsftpd[671402]: pam_userdb(vsftpd:auth): user_lookup: could not init database `/etc/vsftpd/vir_user': No such file or directory

 

/var/log/serect 日志如下:

 

因为pam_userdb使用的数据库由bdb换成了gdbm,需要更换格式。

安装gdbm,使用以下命令创建数据库,增加用户:

gdbmtool -n /etc/vsftpd/vir_user.pag open
gdbmtool /etc/vsftpd/vir_user.pag store user password

注意这里的pag前面的文件命名要和你原本配置的名字一致,执行后就可试试能否登录ftp

 

posted @ 2023-12-29 09:20  太阳的阳ฅ  阅读(8)  评论(0)    收藏  举报