LINUX 由于改动ftp配置导致ftp启动成功但是登陆不上问题
  nXIJy2WQWPQ9 2023年11月02日 52 0

现象:

LINUX 由于改动ftp配置导致ftp启动成功但是登陆不上问题_普通用户

LINUX 由于改动ftp配置导致ftp启动成功但是登陆不上问题_重启_02


ftp服务启动却登陆不上,报 530 Login incorrect.

解决思路:

  1. 查看ftp根目录的属主
  2. 查看vsftpd目录的属主
  3. 查看 /etc/pam.d/vsftpd 文件

最后:

我的情况是,当时想要用普通用户启动ftp,改动有点乱,改动了,vsftpd目录下的文件属主所以导致root启动后依旧登陆不上的问题,

具体报错:

Jul 25 10:54:05 node196 vsftpd[11896]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11889]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11899]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11901]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11904]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11905]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11908]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:07 node196 vsftpd[11912]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:07 node196 vsftpd[11913]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file

具体解决方式:

chmod 664 /etc/vsftpd/ftpusers,然后重启 vsftpd 。

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  Yoru5qB4TSKM   2023年12月10日   37   0   0 服务器重启IP
nXIJy2WQWPQ9