You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Proftpd断开连接后syslog出现PAM系列错误的排查求助

Proftpd断开连接后syslog出现PAM系列错误的排查求助

各位大佬好,我最近碰到个奇怪的问题:每次从Proftpd断开连接后,syslog里都会弹出一串PAM相关的错误,但FTP客户端那边完全没任何报错,连接、传输文件都正常,就是断连后的日志报错看着特别闹心。

先把日志里的错误内容贴出来:

pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
pam_systemd(proftpd:session): Failed to connect to system bus: No such file or directory
pam_succeed_if(proftpd:session): error retrieving information about user 1001

我自己先排查了几点:

  • /etc/security/pam_env.conf这个文件确实存在,权限是-rwxr-xr-x. 1 root root 2971 Apr 2 18:00 /etc/security/pam_env.conf
  • 文件不是空的,但里面没有未注释的有效配置行
  • 我的proftpd.conf里相关的PAM配置是:
    AuthPAMConfig proftpd
    AuthOrder mod_auth_pam.c* mod_auth_unix.c
    
  • SELinux是开启状态,但没抛出和这个问题相关的错误,我只给ftp开了full access的SELinux权限

之前我也看到过类似的旧问题,但还是没找到解决办法,想请教下各位有没有遇到过这种情况,该怎么排查解决呀?

备注:内容来源于stack exchange,提问作者ariel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 09:23:06