---
title: "vsftpd配置虚拟用户的一次踩坑"
id: "3206"
type: "post"
slug: "vsftpd%e9%85%8d%e7%bd%ae%e8%99%9a%e6%8b%9f%e7%94%a8%e6%88%b7%e7%9a%84%e4%b8%80%e6%ac%a1%e8%b8%a9%e5%9d%91"
published_at: "2020-12-29T11:28:15+00:00"
modified_at: "2020-12-29T11:28:15+00:00"
url: "https://seq.ink/all/coding/3206.html"
markdown_url: "https://seq.ink/all/coding/3206.html.md"
excerpt: "在配置完虚拟用户后虚拟用户一直登陆不上。 查看/var/log/secure一直为空(因为之前产生的日志太多玩删除了该文件并touch一个了新)。 现在知道删除/var/log/secure后要重启rsyslog服务才会重新记录日志。 sy ..."
taxonomy_category:
  - "Coding代码堆"
  - "Linux"
  - "Live日常"
---

在配置完虚拟用户后虚拟用户一直登陆不上。  
 查看/var/log/secure一直为空(因为之前产生的日志太多玩删除了该文件并touch一个了新)。  
 现在知道删除/var/log/secure后要重启rsyslog服务才会重新记录日志。  
 `systemctl restart vsftpd.service`  
 最后翻/var/log/secure日志破案,把其中一个user打成了uesr

```
Dec 29 19:18:56 MasterNode vsftpd: pam_userdb(vsftpd:auth): user_lookup: could not open database `/etc/vsftpd/vuesr': No such file or directory
Dec 29 19:18:56 MasterNode vsftpd: pam_unix(vsftpd:auth): check pass; user unknown
Dec 29 19:18:56 MasterNode vsftpd: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=down42 rhost=MasterNode
```

我是傻逼…
