vsFTPd login fail
I have a network. One computer has vsFTPd on it. Its internal IP is 10.0.0.6.
Another computer (10.0.0.3) is trying to connect:
I am entering the correct password for the user which was set:
ftp> open 10.0.0.6
Connected to 10.0.0.6.
220 (vsFTPd 2.3.2)
Name (10.0.0.6:UserName): UserName
331 Please specify the password.
530 Login incorrect.
What could be wrong?
$ sudo passwd UserName
Thank you for your time.
Could the server be misconfigured? There are some specific configuration options that have to be set to enable local users (users in /etc/passwd) to login with their passwords.
There may be also an encoding problem of your password if you have special characters in it. For example characters with diacritics, circumflexes and especially the german characters ß,ä,ü,ö,etc could cause trouble since they have to be encoded on your client and decoded on the server with the same encoding (i.e. UTF8 vs ISO8859-15 vs ISO8859-1).
is this enabled in your vsftpd.conf file
Originally Posted by Kloschüssel
"local_enable" is YES.
Password only contains a-zA-Z0-9.
Yes. It is enabled.
Originally Posted by scathefire
UPDATE: If tried logging in with one of the other accounts on the host computer. This was successful. The question then: What could be wrong with the user I logged in previously?
SOLVED! Opened /etc/passwd and changed /bin/false to /bin/bash ;)
Is this a real user (as in one with a bash shell) or a virtual user (using /bin/false).
A lot of times, if your shell is not proper it can cause problems. If you used /sbin/nologin, it has been known to cause login errors with vsftpd. If you used /sbin/nologin, then change it to /bin/false.
Of course, one way to test it would be to login and test the password.
If the user has a false shell:
su - UserName -s /bin/bash