ftp 登录时 530 Login incorrect. Login failed 5C

Jun 25 15:39:10 localhost sshd[1985]: Server listening on 0.0.0.0 port 22.
Jun 25 15:39:10 localhost sshd[1985]: Server listening on :: port 22.
Jun 25 15:39:19 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 25 15:39:41 localhost pam: gdm-password: pam_unix(gdm-password:session): session opened for user centos by (uid=0)
Jun 25 15:39:41 localhost polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jun 25 15:39:44 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session2 (system bus name :1.46 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 25 15:45:18 localhost sshd[2887]: Accepted password for root from 192.168.88.1 port 49369 ssh2
Jun 25 15:45:18 localhost sshd[2887]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jun 25 15:48:59 localhost sshd[1930]: Server listening on 0.0.0.0 port 22.
Jun 25 15:48:59 localhost sshd[1930]: Server listening on :: port 22.
Jun 25 15:49:06 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 25 15:49:27 localhost pam: gdm-password: pam_unix(gdm-password:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user=centos
Jun 25 15:49:47 localhost pam: gdm-password: pam_unix(gdm-password:session): session opened for user centos by (uid=0)
Jun 25 15:49:47 localhost polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jun 25 15:49:49 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session2 (system bus name :1.46 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 25 15:50:31 localhost sshd[2732]: Accepted password for root from 192.168.88.1 port 49399 ssh2
Jun 25 15:50:31 localhost sshd[2732]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jun 25 15:52:29 localhost sshd[2766]: Accepted password for root from 192.168.88.1 port 49420 ssh2
Jun 25 15:52:29 localhost sshd[2766]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jun 25 15:52:29 localhost sshd[2766]: subsystem request for sftp
Jun 25 15:52:42 localhost sshd[2766]: subsystem request for sftp
Jun 25 15:53:15 localhost useradd[2783]: new group: name=taokey, GID=501
Jun 25 15:53:15 localhost useradd[2783]: new user: name=taokey, UID=501, GID=501, home=/home/taokey, shell=/bin/bash
Jun 25 15:55:42 localhost passwd: pam_unix(passwd:chauthtok): password changed for taokey
Jun 25 15:55:42 localhost passwd: gkr-pam: couldn't update the 'login' keyring password: no old password was entered
Jun 25 16:02:43 localhost vsftpd[2881]: pam_userdb(vsftpd.vu:auth): user_lookup: could not open database /etc/vsftpd/vftpuser#015': No such file or directory
Jun 25 16:03:10 localhost vsftpd[2884]: pam_userdb(vsftpd.vu:auth): user_lookup: could not open database
/etc/vsftpd/vftpuser#015': No such file or directory
上面是日志 /var/log/secure 本人仿照一篇博客安装结果总是出现登录失败,selinux 都关闭了。配置和安装地址:https://www.linuxidc.com/Linux/2015-02/114192.htm

ftp

2个回答

重新安装下vsfptd
sudo apt-get remove vsftpd
sudo rm /etc/pam.d/vsftpd
sudo apt-get install vsftpd

u010011737
早上的阳光 重新安装,只要配置默认的没问题,当参考上面的一篇博客,增加的一些配置出的问题。不知道是不是参考的博客有问题
一年多之前 回复

Back up the config file before making a change;

sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.back

and then edit vsftpd.conf (with vi or nano)

nano /etc/vsftpd.conf

Then make the following change

pam_service_name=ftp

Save your change and restart the ftp server (if you use nano hit CTRL+O & enter to save then CTRL+X to exit)

sudo service vsftpd restart

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!